Skip to content
Commit e3ba9ae5 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <jens.axboe@oracle.com>
parent f7d7b7a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment