Skip to content

block: remove all debugfs dir & don't grab debugfs_mutex

Ming Lei linux-block oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7block: remove hctx->debugfs_dirblock/blk-mq-debugfs.c include/linux/blk-mq.h+36 -163 replies
2/7block: remove hctx->sched_debugfs_dirblock/blk-mq-debugfs.c include/linux/blk-mq.h+24 -121 reply
3/7block: remove q->sched_debugfs_dirblock/blk-mq-debugfs.c block/blk-sysfs.c include/linux/blkdev.h+5 -70 replies
4/7block: remove q->rqos_debugfs_dirblock/blk-mq-debugfs.c block/blk-sysfs.c include/linux/blkdev.h+8 -60 replies
5/7block: remove rqos->debugfs_dirblock/blk-mq-debugfs.c block/blk-rq-qos.h+22 -110 replies
6/7block: remove q->debugfs_dirblock/blk-mq-debugfs.c block/blk-sysfs.c include/linux/blkdev.h +1 more+77 -270 replies
7/7block: don't grab q->debugfs_mutexblock/blk-mq-debugfs.c block/blk-mq-sched.c block/blk-rq-qos.c +2 more+4 -317 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] block: remove all debugfs dir & don't grab debugfs_mutex

Hi,

The 1st 6 patch removes all kinds of debugfs dir entries of block layer, instead always retrieves them debugfs, so avoid to maintain block internal debugfs state.

The 7 patch removes debugfs_mutex for adding/removing debugfs entry because we needn't the protection any more, then one lockdep warning can be fixed.

Ming Lei (7):
block: remove hctx->debugfs_dir
block: remove hctx->sched_debugfs_dir
block: remove q->sched_debugfs_dir
block: remove q->rqos_debugfs_dir
block: remove rqos->debugfs_dir
block: remove q->debugfs_dir
block: don't grab q->debugfs_mutex

 block/blk-mq-debugfs.c  | 179 +++++++++++++++++++++++++++++-----------
 block/blk-mq-sched.c    |   8 --
 block/blk-rq-qos.c      |   7 +-
 block/blk-rq-qos.h      |   3 -
 block/blk-sysfs.c       |  13 +--
 include/linux/blk-mq.h  |  10 ---
 include/linux/blkdev.h  |   3 -
 kernel/trace/blktrace.c |  27 +++++-
 8 files changed, 158 insertions(+), 92 deletions(-)
Signature · 1 line
2.47.0