diff options
| author | Ming Lei <ming.lei@redhat.com> | 2018-12-16 16:46:00 -0900 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2018-12-16 17:53:47 -0900 |
| commit | cc56694f132a8f5fa9334e3afe990de8c3378866 (patch) | |
| tree | c67715ced5609fdcd34e95c3dcc24e6bc8ae494a /block/blk-rq-qos.c | |
| parent | f9824952ee1cd02ae1a74e35e0e8653f8a4db772 (diff) | |
| download | linux-stable-cc56694f132a8f5fa9334e3afe990de8c3378866.tar.gz linux-stable-cc56694f132a8f5fa9334e3afe990de8c3378866.tar.bz2 linux-stable-cc56694f132a8f5fa9334e3afe990de8c3378866.tar.xz linux-stable-cc56694f132a8f5fa9334e3afe990de8c3378866.zip | |
blk-mq-debugfs: support rq_qos
blk-mq-debugfs has been proved as very helpful for debug some
tough issues, such as IO hang.
We have seen blk-wbt related IO hang several times, even inside
Red Hat BZ, there is such report not sovled yet, so this patch
adds support debugfs on rq_qos.
Cc: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Omar Sandoval <osandov@fb.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-rq-qos.c')
| -rw-r--r-- | block/blk-rq-qos.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-rq-qos.c b/block/blk-rq-qos.c index e932ef9d2718..d169d7188fa6 100644 --- a/block/blk-rq-qos.c +++ b/block/blk-rq-qos.c | |||
| @@ -264,6 +264,8 @@ void rq_qos_wait(struct rq_wait *rqw, void *private_data, | |||
| 264 | 264 | ||
| 265 | void rq_qos_exit(struct request_queue *q) | 265 | void rq_qos_exit(struct request_queue *q) |
| 266 | { | 266 | { |
| 267 | blk_mq_debugfs_unregister_queue_rqos(q); | ||
| 268 | |||
| 267 | while (q->rq_qos) { | 269 | while (q->rq_qos) { |
| 268 | struct rq_qos *rqos = q->rq_qos; | 270 | struct rq_qos *rqos = q->rq_qos; |
| 269 | q->rq_qos = rqos->next; | 271 | q->rq_qos = rqos->next; |
