]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
block: reserve some tags just for sync IO
authorJens Axboe <jens.axboe@oracle.com>
Thu, 25 Sep 2008 09:42:41 +0000 (11:42 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 9 Oct 2008 06:56:19 +0000 (08:56 +0200)
commite3ba9ae58a5599226e3976b29c8093041ae7c332
tree5e8a7c0c1b675e19fa6209489479fe9b799a1b3e
parentf7d7b7a7a3db6526a84ea755c1c54a051e9a52de
block: reserve some tags just for sync IO

By only allowing async IO to consume 3/4 ths of the tag depth, we
always have slots free to serve sync IO. This is important to avoid
having writes fill the entire tag queue, thus starving reads.

Original patch and idea from Linus Torvalds <torvalds@linux-foundation.org>

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-tag.c