]> git.baikalelectronics.ru Git - kernel.git/commitdiff
nvme: remove the call to nvme_update_disk_info in nvme_ns_remove
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Sep 2021 07:06:57 +0000 (09:06 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Sep 2021 02:03:30 +0000 (20:03 -0600)
There is no need to explicitly unregister the integrity profile when
deleting the gendisk.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Link: https://lore.kernel.org/r/20210914070657.87677-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c

index 7efb31b87f37aa756124d52606d270a76f905ad2..c72283ebf0cce4e8ff23412fc4871ebf085a6973 100644 (file)
@@ -3856,8 +3856,6 @@ static void nvme_ns_remove(struct nvme_ns *ns)
                nvme_cdev_del(&ns->cdev, &ns->cdev_device);
        del_gendisk(ns->disk);
        blk_cleanup_queue(ns->queue);
-       if (blk_get_integrity(ns->disk))
-               blk_integrity_unregister(ns->disk);
 
        down_write(&ns->ctrl->namespaces_rwsem);
        list_del_init(&ns->list);