Skip to content
Snippets Groups Projects
Commit d278d4a8 authored by Jens Axboe's avatar Jens Axboe
Browse files

block: add code to track actual device queue depth


For blk-mq, ->nr_requests does track queue depth, at least at init
time. But for the older queue paths, it's simply a soft setting.
On top of that, it's generally larger than the hardware setting
on purpose, to allow backup of requests for merging.

Fill a hole in struct request with a 'queue_depth' member, that
drivers can call to more closely inform the block layer of the
real queue depth.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
parent 600271d9
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment