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

blk-mq: allow changing of queue depth through sysfs


For request_fn based devices, the block layer exports a 'nr_requests'
file through sysfs to allow adjusting of queue depth on the fly.
Currently this returns -EINVAL for blk-mq, since it's not wired up.
Wire this up for blk-mq, so that it now also always dynamic
adjustments of the allowed queue depth for any given block device
managed by blk-mq.

Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 64b14519
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