nvme: replace the GENHD_FL_UP check in nvme_mpath_shutdown_disk
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 06:40:24 +0000 (08:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Aug 2021 16:29:36 +0000 (10:29 -0600)
commit916a470da02f909cabb65337f65438b8bc3965b2
tree1ebd3f2444ae833c2d29172402f04db4ae1114b4
parent5eba200526ac5fee7659c45b6c23fb2c576f8813
nvme: replace the GENHD_FL_UP check in nvme_mpath_shutdown_disk

Use the nvme-internal NVME_NSHEAD_DISK_LIVE flag instead of abusing
the block layer state.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20210809064028.1198327-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/multipath.c