From: Christoph Hellwig Date: Tue, 14 Sep 2021 07:06:57 +0000 (+0200) Subject: nvme: remove the call to nvme_update_disk_info in nvme_ns_remove X-Git-Tag: v5.15~8^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9da4c7276ec5d167972d8f6670d64b59838b4ed2;p=platform%2Fkernel%2Flinux-starfive.git nvme: remove the call to nvme_update_disk_info in nvme_ns_remove There is no need to explicitly unregister the integrity profile when deleting the gendisk. Signed-off-by: Christoph Hellwig Reviewed-by: Sagi Grimberg Link: https://lore.kernel.org/r/20210914070657.87677-4-hch@lst.de Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 7efb31b..c72283e 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -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);