提交 b0b78f81 编写于 作者: J Jens Axboe

cfq-iosched: use rw_is_sync() to see if rw flags are sync or not

Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 48e70bc1
......@@ -2062,7 +2062,7 @@ static int cfq_may_queue(struct request_queue *q, int rw)
if (!cic)
return ELV_MQUEUE_MAY;
cfqq = cic_to_cfqq(cic, rw & REQ_RW_SYNC);
cfqq = cic_to_cfqq(cic, rw_is_sync(rw));
if (cfqq) {
cfq_init_prio_data(cfqq, cic->ioc);
cfq_prio_boost(cfqq);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册