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

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: default avatarJens Axboe <jens.axboe@oracle.com>
parent 1f98a13f
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