Thread (42 messages) 42 messages, 7 authors, 2025-11-05

Re: [PATCH 06/11] block: call blk_register_queue earlier in device_add_disk

From: Hannes Reinecke <hare@suse.de>
Date: 2021-08-20 06:09:47

On 8/18/21 4:45 PM, Christoph Hellwig wrote:
Ensure that all the sysfs bits are set up before bdev_add is called,
as that will make the upcomding error handling much easier.  However
this means the call to disk_update_readahead has to be split as that
requires a bdi.  Also remove various sanity checks that don't make
sense now that blk_register_queue only has a single caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
  block/blk-sysfs.c | 9 ---------
  block/genhd.c     | 5 +++--
  2 files changed, 3 insertions(+), 11 deletions(-)
Reviewed-by: Hannes Reinecke <hare@suse.de>
Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare@suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help