nvme: always unregister the integrity profile in __nvme_revalidate_disk
authorChristoph Hellwig <hch@lst.de>
Thu, 2 Nov 2017 18:28:52 +0000 (21:28 +0300)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Nov 2017 02:53:25 +0000 (19:53 -0700)
commitb5be3b392998a5f3763dfbdb1866f81d8ee631c7
tree9ef223a3ac6fb378684640d34d3af62ac0bac67e
parente54b064cb24c8268252336ccdd6523e08c0dcbde
nvme: always unregister the integrity profile in __nvme_revalidate_disk

This is safe because the queue is always frozen when we revalidate, and
it simplifies both the existing code as well as the multipath
implementation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c