commit | e3a2b3f931f59d5284abd13faf8bded726884ffd | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue May 20 11:49:02 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Tue May 20 11:49:02 2014 -0600 |
tree | f5426a4745996e95afc2f01f826e846710929dc2 | |
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>