diff options
author | Jens Axboe <axboe@fb.com> | 2014-05-20 13:49:02 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-05-20 13:49:02 -0400 |
commit | e3a2b3f931f59d5284abd13faf8bded726884ffd (patch) | |
tree | f5426a4745996e95afc2f01f826e846710929dc2 /include/linux/blk-mq.h | |
parent | 64b14519e5913e8d4de9f2e5d9ef59abba3ed83d (diff) |
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>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index a06ca7b5ea05..f45424453338 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h | |||
@@ -63,7 +63,7 @@ struct blk_mq_hw_ctx { | |||
63 | struct blk_mq_tag_set { | 63 | struct blk_mq_tag_set { |
64 | struct blk_mq_ops *ops; | 64 | struct blk_mq_ops *ops; |
65 | unsigned int nr_hw_queues; | 65 | unsigned int nr_hw_queues; |
66 | unsigned int queue_depth; | 66 | unsigned int queue_depth; /* max hw supported */ |
67 | unsigned int reserved_tags; | 67 | unsigned int reserved_tags; |
68 | unsigned int cmd_size; /* per-request extra data */ | 68 | unsigned int cmd_size; /* per-request extra data */ |
69 | int numa_node; | 69 | int numa_node; |