HomeFreeBSD

Linux 3.7 compat, schedule_delayed_work()

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Dec 10 2012, 6:15 PM
Parents
rGe4d89e9cfc60: Switch KM_SLEEP to KM_PUSHPAGE
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG2ae103196248: Linux 3.7 compat, schedule_delayed_work() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Dec 12 2012, 6:47 PM