Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee63cfa7 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: add kblockd_schedule_work_on()



Add a helper to schedule a regular struct work on a particular CPU.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent f72b8792
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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)
{
+1 −1
Original line number Diff line number Diff line
@@ -1440,8 +1440,8 @@ static inline bool req_gap_front_merge(struct request *req, struct bio *bio)
	return bio_will_gap(req->q, bio, req->bio);
}

struct work_struct;
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);