Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0b78f81 authored by Jens Axboe's avatar Jens Axboe
Browse files

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

parent 48e70bc1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);