]> git.baikalelectronics.ru Git - kernel.git/commit
block: improve queue_should_plug() by looking at IO depths
authorJens Axboe <jens.axboe@oracle.com>
Thu, 30 Jul 2009 06:18:24 +0000 (08:18 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 11 Sep 2009 12:33:31 +0000 (14:33 +0200)
commit1737b1cf94bcad49fe06366641d74c6011ecb0cd
tree6658e13f80d4f6450f5a69c82d3bf1b590ecf234
parent08e07924c35dab03624b69cccb8b3da905f797e9
block: improve queue_should_plug() by looking at IO depths

Instead of just checking whether this device uses block layer
tagging, we can improve the detection by looking at the maximum
queue depth it has reached. If that crosses 4, then deem it a
queuing device.

This is important on high IOPS devices, since plugging hurts
the performance there (it can be as much as 10-15% of the sys
time).

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c
include/linux/blkdev.h