PR sync from: Zhong Jinghua zhongjinghua@huawei.com
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/PETBLDGDN5EDHKK5W7OCL7ADFFNWHHYP/
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

--
2.31.1

#I81XCK:【OLK-5.10】当前版本添加块设备没有错误处理,添加块设备错误时会导致内核panic