OSDN Git Service

nvme: remove the GENHD_FL_UP check in nvme_ns_remove
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Aug 2021 06:40:23 +0000 (08:40 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Aug 2021 16:29:36 +0000 (10:29 -0600)
commit5eba200526ac5fee7659c45b6c23fb2c576f8813
tree18228ccdf570cbd1b4227b889db543317bdf9499
parenta94dcfce70d3f4f6cd99f3b43d74305e3a4f3983
nvme: remove the GENHD_FL_UP check in nvme_ns_remove

Early probe failure never reaches nvme_ns_remove, so GENHD_FL_UP must
be set at this point.  Remove the check.

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