diff options
author | Jens Axboe <axboe@fb.com> | 2016-08-24 23:52:48 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-08-29 16:13:21 +0200 |
commit | ee63cfa7fc197b63669623721b8009cce5b0659b (patch) | |
tree | 59285713289d5b1d108622d4d31ffcd646a2dad5 /block | |
parent | workqueue: add cancel_work() (diff) | |
download | linux-ee63cfa7fc197b63669623721b8009cce5b0659b.tar.xz linux-ee63cfa7fc197b63669623721b8009cce5b0659b.zip |
block: add kblockd_schedule_work_on()
Add a helper to schedule a regular struct work on a particular CPU.
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 36c7ac328d8c..2d08597533a4 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -3097,6 +3097,12 @@ int kblockd_schedule_work(struct work_struct *work) } EXPORT_SYMBOL(kblockd_schedule_work); +int kblockd_schedule_work_on(int cpu, struct work_struct *work) +{ + return queue_work_on(cpu, kblockd_workqueue, work); +} +EXPORT_SYMBOL(kblockd_schedule_work_on); + int kblockd_schedule_delayed_work(struct delayed_work *dwork, unsigned long delay) { |