diff options
author | Christoph Hellwig <hch@lst.de> | 2014-06-13 13:43:35 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-06-13 14:17:40 -0400 |
commit | 95ed068165d8edf6a81f9a73df0bb05c38602c3c (patch) | |
tree | 465384acaf1784069dbbe1308e37ee854fe2f973 /block | |
parent | 8f5280f4ee75333ca12bde99ef6280ff65a8af43 (diff) |
blk-mq: merge blk_mq_drain_queue and __blk_mq_drain_queue
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/blk-mq.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index fd8b485d1288..0ef2dc7f01bf 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c | |||
@@ -109,7 +109,7 @@ static void blk_mq_queue_exit(struct request_queue *q) | |||
109 | __percpu_counter_add(&q->mq_usage_counter, -1, 1000000); | 109 | __percpu_counter_add(&q->mq_usage_counter, -1, 1000000); |
110 | } | 110 | } |
111 | 111 | ||
112 | static void __blk_mq_drain_queue(struct request_queue *q) | 112 | void blk_mq_drain_queue(struct request_queue *q) |
113 | { | 113 | { |
114 | while (true) { | 114 | while (true) { |
115 | s64 count; | 115 | s64 count; |
@@ -139,12 +139,7 @@ static void blk_mq_freeze_queue(struct request_queue *q) | |||
139 | spin_unlock_irq(q->queue_lock); | 139 | spin_unlock_irq(q->queue_lock); |
140 | 140 | ||
141 | if (drain) | 141 | if (drain) |
142 | __blk_mq_drain_queue(q); | 142 | blk_mq_drain_queue(q); |
143 | } | ||
144 | |||
145 | void blk_mq_drain_queue(struct request_queue *q) | ||
146 | { | ||
147 | __blk_mq_drain_queue(q); | ||
148 | } | 143 | } |
149 | 144 | ||
150 | static void blk_mq_unfreeze_queue(struct request_queue *q) | 145 | static void blk_mq_unfreeze_queue(struct request_queue *q) |