block: call blk_integrity_add earlier in device_add_disk
mainline inclusion from mainline-v5.15-rc1 commit bab53f6b category: bugfix bugzilla: 188733 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bab53f6b617d9f530978d6e3693f88e586d81a8a ---------------------------------------- Doing all the sysfs file creation before adding the bdev and thus allowing it to be opened will simplify the about to be added error handling. Signed-off-by:Christoph Hellwig <hch@lst.de> Reviewed-by:
Hannes Reinecke <hare@suse.de> Link: https://lore.kernel.org/r/20210818144542.19305-6-hch@lst.de Signed-off-by:
Jens Axboe <axboe@kernel.dk> conflict: block/genhd.c Signed-off-by:
Zhong Jinghua <zhongjinghua@huawei.com> Signed-off-by:
Li Nan <linan122@huawei.com>
Loading
Please sign in to comment