]> git.baikalelectronics.ru Git - kernel.git/commitdiff
block: add kblock_mod_delayed_work_on()
authorJens Axboe <axboe@fb.com>
Mon, 10 Apr 2017 15:54:55 +0000 (09:54 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 28 Apr 2017 14:10:15 +0000 (08:10 -0600)
This modifies (or adds, if not currently pending) an existing
delayed work item.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <Bart.VanAssche@sandisk.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
include/linux/blkdev.h

index 37939672d4df2a908f22f87f819500379aeed09f..64b6e58532bff5dec89d5899223ff124ca5035ed 100644 (file)
@@ -3076,6 +3076,13 @@ int kblockd_schedule_work_on(int cpu, struct work_struct *work)
 }
 EXPORT_SYMBOL(kblockd_schedule_work_on);
 
+int kblockd_mod_delayed_work_on(int cpu, struct delayed_work *dwork,
+                               unsigned long delay)
+{
+       return mod_delayed_work_on(cpu, kblockd_workqueue, dwork, delay);
+}
+EXPORT_SYMBOL(kblockd_mod_delayed_work_on);
+
 int kblockd_schedule_delayed_work(struct delayed_work *dwork,
                                  unsigned long delay)
 {
index 6c247861cb66deddb884e7047cef6a763ba2b029..d098c66b3ab01b73e6b48380b5dc06f81388914f 100644 (file)
@@ -1685,6 +1685,7 @@ int kblockd_schedule_work(struct work_struct *work);
 int kblockd_schedule_work_on(int cpu, struct work_struct *work);
 int kblockd_schedule_delayed_work(struct delayed_work *dwork, unsigned long delay);
 int kblockd_schedule_delayed_work_on(int cpu, struct delayed_work *dwork, unsigned long delay);
+int kblockd_mod_delayed_work_on(int cpu, struct delayed_work *dwork, unsigned long delay);
 
 #ifdef CONFIG_BLK_CGROUP
 /*