]> git.proxmox.com Git - mirror_spl.git/commit - config/spl-build.m4
Linux 3.17 compat: remove wait_on_bit action function
authorNed Bass <bass6@llnl.gov>
Sat, 9 Aug 2014 00:41:22 +0000 (17:41 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 11 Aug 2014 21:17:00 +0000 (14:17 -0700)
commit2fc44f66ec9b83069593d87cf311069458c0d5ae
treea809b993c5c6153f8b101cecfa43d7655532f0ea
parentf2297b5a8932594a45c99d3d01b0d53a16ea9753
Linux 3.17 compat: remove wait_on_bit action function

Linux kernel 3.17 removes the action function argument from
wait_on_bit().  Add autoconf test and compatibility macro to support
the new interface.

The former "wait_on_bit" interface required an 'action' function to
be provided which does the actual waiting. There were over 20 such
functions in the kernel, many of them identical, though most cases
can be satisfied by one of just two functions: one which uses
io_schedule() and one which just uses schedule().  This API change
was made to consolidate all of those redundant wait functions.

References: torvalds/linux@7431620

Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #378
config/spl-build.m4
include/linux/Makefile.am
include/linux/wait_compat.h [new file with mode: 0644]
include/sys/types.h
module/spl/spl-kmem.c