Skip to contentSkip to conversation

block: Remove used kblockd_schedule_work_on()

PATCH Applied Daniel Wagner 2 participants 2 messages Mar 2, 2020 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 block: Remove used kblockd_schedule_work_on()

Commit ee63cfa7fc19 ("block: add kblockd_schedule_work_on()") introduced the helper in 2016. Remove it because since then no caller was added.

---
 block/blk-core.c       | 6 ------
 include/linux/blkdev.h | 1 -
 2 files changed, 7 deletions(-)
block/blk-core.c +0 -6
index 089e890ab208..60dc9552ef8d 100644
@@ -1663,12 +1663,6 @@ 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_mod_delayed_work_on(int cpu, struct delayed_work *dwork,
 				unsigned long delay)
 {
include/linux/blkdev.h +0 -1
index 053ea4b51988..1797d1111b44 100644
@@ -1494,7 +1494,6 @@ static inline void put_dev_sector(Sector p)
 }
 
 int kblockd_schedule_work(struct work_struct *work);
-int kblockd_schedule_work_on(int cpu, struct work_struct *work);
 int kblockd_mod_delayed_work_on(int cpu, struct delayed_work *dwork, unsigned long delay);
 
 #define MODULE_ALIAS_BLOCKDEV(major,minor) \
Signature · 1 line
2.16.4
maintainer Applied
#1 lore raw
Quoted 3 lines · Daniel Wagner

Commit ee63cfa7fc19 ("block: add kblockd_schedule_work_on()") introduced the helper in 2016. Remove it because since then no caller was added.

Applied, thanks.

Signature · 1 line
Jens Axboe