]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] cfq-iosched: tighten allow merge criteria
authorJens Axboe <jens.axboe@oracle.com>
Fri, 22 Dec 2006 08:38:53 +0000 (09:38 +0100)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 22 Dec 2006 22:13:08 +0000 (14:13 -0800)
commit73cc55325be9d13736b53b42d1fa4e4a15a5ee87
treef0b9074069777c430045e7be803d8c5a2187ecc9
parentdfa233b859d265f9f905d68a219ae699d1eac31a
[PATCH] cfq-iosched: tighten allow merge criteria

The logic in cfq_allow_merge() wasn't clear enough - basically allow
merging for the same queues only.  Do a fast check for 'rq and bio both
sync/async' before doing the cfqq hash lookup.

This is verified to work with the fixed elv_try_merge() from commit
1ee6a3c1393b24173caf5f96e87d29f6bfdfae09.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
block/cfq-iosched.c