Skip to content

block layer bugfix

Jack Wang stable 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/27 patches 2 repliesIn review
  2. v1 posting 1/28 patches 2 repliesSuperseded

Patches in v1 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7block: fix NULL pointer dereference in register_diskblock/genhd.c+6 -40 replies
2/7block: don't hold q->sysfs_lock in elevator_init_mqblock/elevator.c+5 -90 replies
3/7blk-mq: don't hold q->sysfs_lock in blk_mq_map_swqueueblock/blk-mq.c+0 -70 replies
4/7block: add helper for checking if queue is registeredblock/blk-sysfs.c block/blk-wbt.c block/elevator.c +1 more+5 -40 replies
5/7block: split .sysfs_lock into two locksblock/blk-core.c block/blk-mq-sysfs.c block/blk-sysfs.c +3 more+86 -330 replies
6/7block: fix race between switching elevator and removing queuesblock/blk-sysfs.c+5 -30 replies
7/7block: don't release queue's sysfs lock during switching elevatorblock/blk-sysfs.c block/elevator.c+3 -310 replies

Reviews trailers per patch

5 of 7 patches have a Reviewed-by or Acked-by.

PatchBart Van Assche
1/7
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7
7/7R-b

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

Read the v1 thread

Cover letter [stable-4.19 Resend 0/7] block layer bugfix

Hi Greg, hi Sasha,

Please consider to include following fixes in to stable tree.
The 6 patches from Ming was fixing a deadlock, they are included around kernel 5.3/4. Would be good to included in 4.19, we hit it during testing, with the fix we no longer hit the deadlock.

The last one is simple NULL pointer deref fix.

Thanks!
Jack Wang @ IONOS Cloud.

v1: https://lore.kernel.org/stable/[email protected]/

Ming Lei (6):
block: don't hold q->sysfs_lock in elevator_init_mq
blk-mq: don't hold q->sysfs_lock in blk_mq_map_swqueue
block: add helper for checking if queue is registered
block: split .sysfs_lock into two locks
block: fix race between switching elevator and removing queues
block: don't release queue's sysfs lock during switching elevator

zhengbin (1):
block: fix NULL pointer dereference in register_disk

 block/blk-core.c       |  1 +
 block/blk-mq-sysfs.c   | 12 +++++------
 block/blk-mq.c         |  7 ------
 block/blk-sysfs.c      | 49 +++++++++++++++++++++++++++---------------
 block/blk-wbt.c        |  2 +-
 block/blk.h            |  2 +-
 block/elevator.c       | 44 +++++++++++++++++++++----------------
 block/genhd.c          | 10 +++++----
 include/linux/blkdev.h |  2 ++
 9 files changed, 74 insertions(+), 55 deletions(-)
Signature · 1 line
2.25.1