OSDN Git Service

blk-mq: export hctx->type in debugfs instead of sysfs
authorMing Lei <ming.lei@redhat.com>
Mon, 17 Dec 2018 10:42:48 +0000 (18:42 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 17 Dec 2018 12:44:45 +0000 (05:44 -0700)
commit346fc1089e5d4734990b4b6c3cd0cdeae9ae482d
treeeca212d47c41b63d2b7b8bc74475442181843141
parent07b35eb5a364fa59f88f65e6c786192f2c9163be
blk-mq: export hctx->type in debugfs instead of sysfs

Now we only export hctx->type via sysfs, and there isn't such info
in hctx entry under debugfs. We often use debugfs only to diagnose
queue mapping issue, so add the support in debugfs.

Queue mapping becomes a bit more complicated after multiple queue
mapping is supported, we may write blktest to verify if queue mapping
is valid based on blk-mq-debugfs.

Given not necessary to export hctx->type twice, so remove the export
from sysfs.

Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c
block/blk-mq-sysfs.c