aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-04-08 11:15:35 -0400
committerJens Axboe <axboe@fb.com>2014-04-09 12:17:00 -0400
commit59c3d45e487315e6e05a3f2310b61109f8e503e7 (patch)
treeb275e73e6ab7dd599d2ec7edd5b9aa6efe361b31 /block
parente69f18f06b97ed29645d020500222bfcec2b42b2 (diff)
block: remove 'q' parameter from kblockd_schedule_*_work()
The queue parameter is never used, just get rid of it. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-core.c6
-rw-r--r--block/blk-flush.c2
-rw-r--r--block/blk-mq.c7
-rw-r--r--block/cfq-iosched.c2
4 files changed, 7 insertions, 10 deletions
diff --git a/block/blk-core.c b/block/blk-core.c
index 34d7c196338b..f7d2c3335dfa 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -2904,14 +2904,14 @@ free_and_out:
2904} 2904}
2905EXPORT_SYMBOL_GPL(blk_rq_prep_clone); 2905EXPORT_SYMBOL_GPL(blk_rq_prep_clone);
2906 2906
2907int kblockd_schedule_work(struct request_queue *q, struct work_struct *work) 2907int kblockd_schedule_work(struct work_struct *work)
2908{ 2908{
2909 return queue_work(kblockd_workqueue, work); 2909 return queue_work(kblockd_workqueue, work);
2910} 2910}
2911EXPORT_SYMBOL(kblockd_schedule_work); 2911EXPORT_SYMBOL(kblockd_schedule_work);
2912 2912
2913int kblockd_schedule_delayed_work(struct request_queue *q, 2913int kblockd_schedule_delayed_work(struct delayed_work *dwork,
2914 struct delayed_work *dwork, unsigned long delay) 2914 unsigned long delay)
2915{ 2915{
2916 return queue_delayed_work(kblockd_workqueue, dwork, delay); 2916 return queue_delayed_work(kblockd_workqueue, dwork, delay);
2917} 2917}
diff --git a/block/blk-flush.c b/block/blk-flush.c
index 43e6b4755e9a..77f20458910c 100644
--- a/block/blk-flush.c
+++ b/block/blk-flush.c
@@ -144,7 +144,7 @@ static bool blk_flush_queue_rq(struct request *rq, bool add_front)
144{ 144{
145 if (rq->q->mq_ops) { 145 if (rq->q->mq_ops) {
146 INIT_WORK(&rq->mq_flush_work, mq_flush_run); 146 INIT_WORK(&rq->mq_flush_work, mq_flush_run);
147 kblockd_schedule_work(rq->q, &rq->mq_flush_work); 147 kblockd_schedule_work(&rq->mq_flush_work);
148 return false; 148 return false;
149 } else { 149 } else {
150 if (add_front) 150 if (add_front)
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 1d2a9bdbee57..9c8f1f4ada7f 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -608,11 +608,8 @@ void blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx, bool async)
608 608
609 if (!async) 609 if (!async)
610 __blk_mq_run_hw_queue(hctx); 610 __blk_mq_run_hw_queue(hctx);
611 else { 611 else
612 struct request_queue *q = hctx->queue; 612 kblockd_schedule_delayed_work(&hctx->delayed_work, 0);
613
614 kblockd_schedule_delayed_work(q, &hctx->delayed_work, 0);
615 }
616} 613}
617 614
618void blk_mq_run_queues(struct request_queue *q, bool async) 615void blk_mq_run_queues(struct request_queue *q, bool async)
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index e0985f1955e7..5063a0bd831a 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -908,7 +908,7 @@ static inline void cfq_schedule_dispatch(struct cfq_data *cfqd)
908{ 908{
909 if (cfqd->busy_queues) { 909 if (cfqd->busy_queues) {
910 cfq_log(cfqd, "schedule dispatch"); 910 cfq_log(cfqd, "schedule dispatch");
911 kblockd_schedule_work(cfqd->queue, &cfqd->unplug_work); 911 kblockd_schedule_work(&cfqd->unplug_work);
912 } 912 }
913} 913}
914 914