提交 95ed0681 编写于 作者: C Christoph Hellwig 提交者: Jens Axboe

blk-mq: merge blk_mq_drain_queue and __blk_mq_drain_queue

Signed-off-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NJens Axboe <axboe@fb.com>
上级 8f5280f4
......@@ -109,7 +109,7 @@ static void blk_mq_queue_exit(struct request_queue *q)
__percpu_counter_add(&q->mq_usage_counter, -1, 1000000);
}
static void __blk_mq_drain_queue(struct request_queue *q)
void blk_mq_drain_queue(struct request_queue *q)
{
while (true) {
s64 count;
......@@ -139,12 +139,7 @@ static void blk_mq_freeze_queue(struct request_queue *q)
spin_unlock_irq(q->queue_lock);
if (drain)
__blk_mq_drain_queue(q);
}
void blk_mq_drain_queue(struct request_queue *q)
{
__blk_mq_drain_queue(q);
blk_mq_drain_queue(q);
}
static void blk_mq_unfreeze_queue(struct request_queue *q)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册