]> git.baikalelectronics.ru Git - kernel.git/commit
blk-mq: allow changing of queue depth through sysfs
authorJens Axboe <axboe@fb.com>
Tue, 20 May 2014 17:49:02 +0000 (11:49 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 20 May 2014 17:49:02 +0000 (11:49 -0600)
commit7b923d1d2b82e77995595a206f45341bf8a91804
treef5426a4745996e95afc2f01f826e846710929dc2
parent6befcd47f6f2a20700249d179e581db189860ab3
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>
block/blk-core.c
block/blk-mq-tag.c
block/blk-mq-tag.h
block/blk-mq.c
block/blk-mq.h
block/blk-sysfs.c
block/blk.h
include/linux/blk-mq.h