diff options
author | Brian Behlendorf <[email protected]> | 2012-12-10 10:15:12 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2012-12-12 10:47:05 -0800 |
commit | 2ae10319624869eef0954cdfcdb6f5e33cba2e09 (patch) | |
tree | b7be37184aa672672dc39eef5195ad9cc0b9f3bd /include/sys/zfs_ctldir.h | |
parent | e4d89e9cfc605dc59df57d89818868e033e59cfb (diff) |
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 <[email protected]>
Closes #1053
Diffstat (limited to 'include/sys/zfs_ctldir.h')
-rw-r--r-- | include/sys/zfs_ctldir.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/zfs_ctldir.h b/include/sys/zfs_ctldir.h index 0a3c142eb..1ff23a298 100644 --- a/include/sys/zfs_ctldir.h +++ b/include/sys/zfs_ctldir.h @@ -50,7 +50,7 @@ typedef struct { char *se_name; char *se_path; struct inode *se_inode; - struct delayed_work se_work; + taskqid_t se_taskqid; avl_node_t se_node; } zfs_snapentry_t; |