linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [for-4.16 PATCH v3 0/3] block/dm: allow DM to defer blk_register_queue() until ready
@ 2018-01-11  2:12 Mike Snitzer
  2018-01-11  2:12 ` [for-4.16 PATCH v3 1/3] block: only bdi_unregister() in del_gendisk() if !GENHD_FL_HIDDEN Mike Snitzer
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Mike Snitzer @ 2018-01-11  2:12 UTC (permalink / raw)
  To: axboe; +Cc: Ming Lei, hch, Bart.VanAssche, dm-devel, linux-block

Hi Jens,

I eliminated my implementation that set disk->queue = NULL before
calling add_disk().  As we discussed it left way too much potential
for NULL pointer crashes and I agree it was too fragile.

This v3's approach is much simpler.  It adjusts block core so that
blk_register_queue() can be deferred (so add_disk()'s call is avoided
if QUEUE_FLAG_DEFER_REG is set, and a driver must then call it once it
has completed initializing its request_queue).

PATCH 1 is just an unrelated fix.  Christoph agreed with it in reply
to my v2 submission (but he didn't provide a Reviewed-by).  Anyway,
I've revised the header to have it make more sense.

If these changes look reasonable I'd prefer that you pick them all up
for 4.16 (last DM patch included because it'll save me an awkward
dm-4.16 rebase, etc).

Thanks!
Mike

Mike Snitzer (3):
  block: only bdi_unregister() in del_gendisk() if !GENHD_FL_HIDDEN
  block: allow gendisk's request_queue registration to be deferred
  dm: fix awkward and incomplete request_queue initialization

 block/blk-sysfs.c      |  4 ++++
 block/genhd.c          |  7 +++++--
 drivers/md/dm-core.h   |  2 --
 drivers/md/dm-rq.c     | 11 -----------
 drivers/md/dm.c        | 44 ++++++++++++++++++++++++++------------------
 include/linux/blkdev.h |  1 +
 6 files changed, 36 insertions(+), 33 deletions(-)

-- 
2.15.0

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2018-01-11 19:50 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-11  2:12 [for-4.16 PATCH v3 0/3] block/dm: allow DM to defer blk_register_queue() until ready Mike Snitzer
2018-01-11  2:12 ` [for-4.16 PATCH v3 1/3] block: only bdi_unregister() in del_gendisk() if !GENHD_FL_HIDDEN Mike Snitzer
2018-01-11  2:48   ` Ming Lei
2018-01-11  7:40   ` Hannes Reinecke
2018-01-11  2:12 ` [for-4.16 PATCH v3 2/3] block: allow gendisk's request_queue registration to be deferred Mike Snitzer
2018-01-11  2:54   ` Ming Lei
2018-01-11  7:46   ` Hannes Reinecke
2018-01-11 17:04     ` Mike Snitzer
2018-01-11 17:18       ` Bart Van Assche
2018-01-11 17:29         ` Mike Snitzer
2018-01-11 17:47           ` Bart Van Assche
2018-01-11 19:20             ` Mike Snitzer
2018-01-11 19:32               ` Bart Van Assche
2018-01-11 19:50                 ` Mike Snitzer
2018-01-11  7:56   ` Hannes Reinecke
2018-01-11 16:03     ` Mike Snitzer
2018-01-11  2:12 ` [for-4.16 PATCH v3 3/3] dm: fix awkward and incomplete request_queue initialization Mike Snitzer
2018-01-11  2:56   ` Ming Lei
2018-01-11  7:57   ` Hannes Reinecke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).