diff options
author | Jens Axboe <axboe@fb.com> | 2014-04-08 11:17:40 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-09 12:17:03 -0400 |
commit | 8ab14595b6dffecea264dcca2d6d9eea7c59273a (patch) | |
tree | da3b6e2996686925d6163a9e95863586586cda15 /block/blk-core.c | |
parent | 59c3d45e487315e6e05a3f2310b61109f8e503e7 (diff) |
block: add kblockd_schedule_delayed_work_on()
Same function as kblockd_schedule_delayed_work(), but allow the
caller to pass in a CPU that the work should be executed on. This
just directly extends and maps into the workqueue API, and will
be used to make the blk-mq mappings more strict.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index f7d2c3335dfa..7af4a4898dcb 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -2917,6 +2917,13 @@ int kblockd_schedule_delayed_work(struct delayed_work *dwork, | |||
2917 | } | 2917 | } |
2918 | EXPORT_SYMBOL(kblockd_schedule_delayed_work); | 2918 | EXPORT_SYMBOL(kblockd_schedule_delayed_work); |
2919 | 2919 | ||
2920 | int kblockd_schedule_delayed_work_on(int cpu, struct delayed_work *dwork, | ||
2921 | unsigned long delay) | ||
2922 | { | ||
2923 | return queue_delayed_work_on(cpu, kblockd_workqueue, dwork, delay); | ||
2924 | } | ||
2925 | EXPORT_SYMBOL(kblockd_schedule_delayed_work_on); | ||
2926 | |||
2920 | #define PLUG_MAGIC 0x91827364 | 2927 | #define PLUG_MAGIC 0x91827364 |
2921 | 2928 | ||
2922 | /** | 2929 | /** |