]> git.baikalelectronics.ru Git - kernel.git/commit
block: remove WARN_ON() from bd_link_disk_holder
authorLi Nan <linan122@huawei.com>
Thu, 23 Jun 2022 07:41:00 +0000 (15:41 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 23 Jun 2022 13:48:05 +0000 (07:48 -0600)
commitf41b8baf6c30a47c12b611b5a944b3db5776f4f5
treead459b0d6cb0cb439563cc2d99809db507ed01bf
parent938222bf8960c8c283781486bb85d825ad09f9a8
block: remove WARN_ON() from bd_link_disk_holder

Since commit e8bbf0ad3a0e("block: add error handling for device_add_disk /
add_disk"), bdev->bd_holder_dir can not be empty now, so remove WARN_ON()
from bd_link_disk_holder.

Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20220623074100.2251301-1-linan122@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/holder.c