cfq-iosched: Reorder checks in cfq_should_preempt()
authorJan Kara <jack@suse.com>
Tue, 12 Jan 2016 15:24:16 +0000 (16:24 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 4 Feb 2016 16:50:12 +0000 (09:50 -0700)
commit6c80731c75bd3289d35b89a21a4e317cbcb306e3
tree6436e8e33ca1f8cd62a46c900547bab559504384
parente795421e40b39bf874c5ed9434365fb4a4b6c5d1
cfq-iosched: Reorder checks in cfq_should_preempt()

Move check for preemption by rt class up. There is no functional change
but it makes arguing about conditions simpler since we can be sure both
cfq queues are from the same ioprio class.

Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jan Kara <jack@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/cfq-iosched.c