diff options
author | Cheng Renquan <crquan@gmail.com> | 2008-12-03 06:41:39 -0500 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-12-29 02:28:44 -0500 |
commit | 64d01dc9e1927e6535627d73f2336c75d1dd3fe2 (patch) | |
tree | 1813333970f6ed1c1959edfc2842b00ed2b3a70e /include | |
parent | 08bafc0341f2f7920e9045bc32c40299cac8c21b (diff) |
block: use cancel_work_sync() instead of kblockd_flush_work()
After many improvements on kblockd_flush_work, it is now identical to
cancel_work_sync, so a direct call to cancel_work_sync is suggested.
The only difference is that cancel_work_sync is a GPL symbol,
so no non-GPL modules anymore.
Signed-off-by: Cheng Renquan <crquan@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/blkdev.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 482e9600f7a2..e9bb73ff1d64 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h | |||
@@ -978,7 +978,6 @@ static inline void put_dev_sector(Sector p) | |||
978 | 978 | ||
979 | struct work_struct; | 979 | struct work_struct; |
980 | int kblockd_schedule_work(struct request_queue *q, struct work_struct *work); | 980 | int kblockd_schedule_work(struct request_queue *q, struct work_struct *work); |
981 | void kblockd_flush_work(struct work_struct *work); | ||
982 | 981 | ||
983 | #define MODULE_ALIAS_BLOCKDEV(major,minor) \ | 982 | #define MODULE_ALIAS_BLOCKDEV(major,minor) \ |
984 | MODULE_ALIAS("block-major-" __stringify(major) "-" __stringify(minor)) | 983 | MODULE_ALIAS("block-major-" __stringify(major) "-" __stringify(minor)) |