Linux 3.7 compat, schedule_delayed_work()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 10 Dec 2012 18:15:12 +0000 (10:15 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 12 Dec 2012 18:47:05 +0000 (10:47 -0800)
commit2ae10319624869eef0954cdfcdb6f5e33cba2e09
treeb7be37184aa672672dc39eef5195ad9cc0b9f3bd
parente4d89e9cfc605dc59df57d89818868e033e59cfb
Linux 3.7 compat, schedule_delayed_work()

Linux kernel commit d8e794d accidentally broke the delayed work
APIs for non-GPL callers.   While the APIs to schedule a delayed
work item are still available to all callers, it is no longer
possible to initialize the delayed work item.

I'm cautiously optimistic we could get the delayed_work_timer_fn
exported for all callers in the upstream kernel.  But frankly
the compatibility code to use this kernel interface has always
been problematic.

Therefore, this patch abandons direct use the of the Linux
kernel interface in favor of the new delayed taskq interface.
It provides roughly the same functionality as delayed work queues
but it's a stable interface under our control.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #1053
include/sys/zfs_ctldir.h
module/zfs/zfs_ctldir.c