提交 1b59dd51 编写于 作者: J Jens Axboe

block: use proper BLK_RW_ASYNC in blk_queue_start_tag()

Makes it easier to read than the 0.
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 316d315b
......@@ -359,7 +359,7 @@ int blk_queue_start_tag(struct request_queue *q, struct request *rq)
max_depth -= 2;
if (!max_depth)
max_depth = 1;
if (q->in_flight[0] > max_depth)
if (q->in_flight[BLK_RW_ASYNC] > max_depth)
return 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册