commit | b0b78f81a5a3bfe9442fcc3a9c13e298a742556a | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Apr 08 10:56:08 2009 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Apr 15 08:28:10 2009 +0200 |
tree | bd920e9db9da9d90b892ba073ddb07209bdba8a9 | |
parent | 48e70bc18ac81881dedd3aa327c55b924fc41ecf [diff] [blame] |
cfq-iosched: use rw_is_sync() to see if rw flags are sync or not Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c index a4809de..f36f8b4 100644 --- a/block/cfq-iosched.c +++ b/block/cfq-iosched.c
@@ -2062,7 +2062,7 @@ 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);