Commit b0b78f81 authored by Jens Axboe's avatar Jens Axboe

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

Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 48e70bc1
...@@ -2062,7 +2062,7 @@ static int cfq_may_queue(struct request_queue *q, int rw) ...@@ -2062,7 +2062,7 @@ static int cfq_may_queue(struct request_queue *q, int rw)
if (!cic) if (!cic)
return ELV_MQUEUE_MAY; return ELV_MQUEUE_MAY;
cfqq = cic_to_cfqq(cic, rw & REQ_RW_SYNC); cfqq = cic_to_cfqq(cic, rw_is_sync(rw));
if (cfqq) { if (cfqq) {
cfq_init_prio_data(cfqq, cic->ioc); cfq_init_prio_data(cfqq, cic->ioc);
cfq_prio_boost(cfqq); cfq_prio_boost(cfqq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment