Skip to content

block: protect debugfs attributes using elavtor_lock

Nilay Shroff linux-block 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesApplied
  2. v11 patch 7 repliesSuperseded

Changes in v2 from the cover letter

- Split patch into smaller patches for bisectability. (hch)
- Remove goto lable and return immediately upon failing to acquire the mutex lock. (Damien, hch)
- Original patch in v1 is splitted into three patches
Link to v1: https://lore.kernel.org/all/[email protected]/
---
Nilay Shroff (3):
block: protect debugfs attrs using elevator_lock instead of sysfs_lock
block: Remove unnecessary goto labels in debugfs attribute read
methods
block: protect debugfs attribute method hctx_busy_show

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3block: protect debugfs attrs using elevator_lock instead of sysfs_lockblock/blk-mq-debugfs.c include/linux/blkdev.h+11 -111 reply
2/3block: Remove unnecessary goto labels in debugfs attribute read methodsblock/blk-mq-debugfs.c+8 -121 reply
3/3block: protect debugfs attribute method hctx_busy_showblock/blk-mq-debugfs.c+5 -01 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCHv2 0/3] block: protect debugfs attributes using elavtor_lock

Hi,

This patchset contains total three patches.
The first patch helps protect debugfs attributes using q->elevator_lock instead of q->sysfs_lock.
The second patch in the series removes the goto labels from the read methods of debugfs attributes that improves code readability and reducing complexity.
The third patch in the series protects debugfs attribute method hctx_ busy_show using q->elevator_lock.

Please note that this patchset was unit tested against blktests and quick xfstests with lockdep enabled.
---
Changes from v1:
- Split patch into smaller patches for bisectability. (hch)
- Remove goto lable and return immediately upon failing to acquire the mutex lock. (Damien, hch)
- Original patch in v1 is splitted into three patches
Link to v1: https://lore.kernel.org/all/[email protected]/
---
Nilay Shroff (3):
block: protect debugfs attrs using elevator_lock instead of sysfs_lock
block: Remove unnecessary goto labels in debugfs attribute read
methods
block: protect debugfs attribute method hctx_busy_show

 block/blk-mq-debugfs.c | 41 +++++++++++++++++++++--------------------
 include/linux/blkdev.h |  6 +++---
 2 files changed, 24 insertions(+), 23 deletions(-)
Signature · 1 line
2.47.1