Befor these paths, block is not know when drvier is add fail.
Now, add error handling for drivers.
Christoph Hellwig (14):
block: fold register_disk into device_add_disk
block: call blk_integrity_add earlier in device_add_disk
block: add the events* attributes to disk_attrs
block: fix error unwinding in device_add_disk
block: clear ->slave_dir when dropping the main slave_dir reference
block: add blk_alloc_disk and blk_cleanup_disk APIs
blk-mq: add the blk_mq_alloc_disk APIs
loop: use blk_mq_alloc_disk and blk_cleanup_disk
loop: fix order of cleaning up the queue and freeing the tagset
nbd: use blk_mq_alloc_disk and blk_cleanup_disk
block: add a flag to make put_disk on partially initalized disks safer
nvme: use blk_mq_alloc_disk
brd: convert to blk_alloc_disk/blk_cleanup_disk
ubi: use blk_mq_alloc_disk and blk_cleanup_disk
Dan Carpenter (1):
blk-mq: fix an IS_ERR() vs NULL bug
Luis Chamberlain (11):
block: return errors from blk_integrity_add
block: return errors from disk_alloc_events
block: add error handling for device_add_disk / add_disk
block: fix device_add_disk() kobject_create_and_add() error handling
loop: add error handling support for add_disk()
nbd: add error handling support for add_disk()
nvme: add error handling support for add_disk()
block/brd: add error handling support for add_disk()
scsi: sd: Add error handling support for add_disk()
scsi: sr: Add error handling support for add_disk()
mtd/ubi/block: add error handling support for add_disk()
Tetsuo Handa (1):
block: check minor range in device_add_disk()
Wang Qing (1):
nbd: fix order of cleaning up the queue and freeing the tagset
Yu Kuai (1):
block: fix memory leak for elevator on add_disk failure
Zhong Jinghua (9):
block: return errors from blk_register_region
block: Fix the kabi change in device_add_disk
block: Fix the kabi change on blk_register_region
block: call blk_get_queue earlier in __device_add_disk
block: Fix minor range check in device_add_disk()
block: Set memalloc_noio to false in the error path
scsi: sd: Clean up sdkp if device_add_disk() failed
mtd/ubi/block: Fix null pointer dereference issue in error path
mtd/ubi/block: Fix uaf problem in ubiblock_cleanup
block/blk-integrity.c | 12 +-
block/blk-mq.c | 19 +++
block/blk.h | 5 +-
block/genhd.c | 286 ++++++++++++++++++++++++++-------------
drivers/block/brd.c | 103 ++++++--------
drivers/block/loop.c | 26 ++--
drivers/block/nbd.c | 59 ++++----
drivers/mtd/ubi/block.c | 76 +++++------
drivers/nvme/host/core.c | 41 +++---
drivers/scsi/sd.c | 8 +-
drivers/scsi/sr.c | 7 +-
include/linux/blk-mq.h | 12 ++
include/linux/genhd.h | 36 +++++
13 files changed, 417 insertions(+), 273 deletions(-)
--
2.31.1