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:
Jens Axboe <axboe@fb.com>
Showing
- block/blk-core.c 41 additions, 0 deletionsblock/blk-core.c
- block/blk-mq-tag.c 57 additions, 23 deletionsblock/blk-mq-tag.c
- block/blk-mq-tag.h 1 addition, 0 deletionsblock/blk-mq-tag.h
- block/blk-mq.c 22 additions, 0 deletionsblock/blk-mq.c
- block/blk-mq.h 1 addition, 0 deletionsblock/blk-mq.h
- block/blk-sysfs.c 9 additions, 36 deletionsblock/blk-sysfs.c
- block/blk.h 2 additions, 0 deletionsblock/blk.h
- include/linux/blk-mq.h 1 addition, 1 deletioninclude/linux/blk-mq.h
Loading
Please register or sign in to comment