Skip to content

block/dm: allow DM to defer blk_register_queue() until ready

Mike Snitzer dm-devel linux-block 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 15 repliesIn review
  2. v44 patches 9 repliesSuperseded
  3. v33 patches 15 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v23 patches8 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: only bdi_unregister() in del_gendisk() if !GENHD_FL_HIDDENblock/genhd.c+2 -10 replies
2/4block: properly protect the 'queue' kobj in blk_unregister_queueblock/blk-sysfs.c+10 -34 replies
3/4block: allow gendisk's request_queue registration to be deferredblock/blk-sysfs.c block/genhd.c include/linux/genhd.h+27 -30 replies
4/4dm: fix incomplete request_queue initializationdrivers/md/dm-rq.c drivers/md/dm.c+10 -100 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchMing LeiHannes Reinecke
1/4R-b R-b
2/4R-b
3/4R-b
4/4T-b

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

Read the v5 thread

Cover letter [for-4.16 PATCH v5 0/4] block/dm: allow DM to defer blk_register_queue() until ready

Hi Jens,

I'm submitting this v5 with more feeling now ;)

I've distilled the changes down to be quite minimal. Hopefully this will help you and others review.

I've also done a dry-run of applying 4.16 block changes and then merging dm-4.16; no merge conflicts:
https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git/log/?h=block-4.16
https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git/log/?h=dm-4.16
https://git.kernel.org/pub/scm/linux/kernel/git/snitzer/linux.git/log/?h=block-4.16_dm-4.16

And all tests very well for me.

Please consider for 4.16, thanks!

Mike

Mike Snitzer (4):
block: only bdi_unregister() in del_gendisk() if !GENHD_FL_HIDDEN
block: properly protect the 'queue' kobj in blk_unregister_queue
block: allow gendisk's request_queue registration to be deferred
dm: fix incomplete request_queue initialization

 block/blk-sysfs.c     | 18 +++++++++++++++---
 block/genhd.c         | 23 +++++++++++++++++++----
 drivers/md/dm-rq.c    |  9 ---------
 drivers/md/dm.c       | 11 ++++++++++-
 include/linux/genhd.h |  5 +++++
 5 files changed, 49 insertions(+), 17 deletions(-)
Signature · 1 line
2.15.0