projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5eba200
)
nvme: replace the GENHD_FL_UP check in nvme_mpath_shutdown_disk
author
Christoph Hellwig
<hch@lst.de>
Mon, 9 Aug 2021 06:40:24 +0000
(08:40 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 12 Aug 2021 16:29:36 +0000
(10:29 -0600)
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
patch
|
blob
|
history
diff --git
a/drivers/nvme/host/multipath.c
b/drivers/nvme/host/multipath.c
index
3f32c5e
..
37ce3e8
100644
(file)
--- a/
drivers/nvme/host/multipath.c
+++ b/
drivers/nvme/host/multipath.c
@@
-765,7
+765,7
@@
void nvme_mpath_shutdown_disk(struct nvme_ns_head *head)
if (!head->disk)
return;
kblockd_schedule_work(&head->requeue_work);
- if (
head->disk->flags & GENHD_FL_UP
) {
+ if (
test_bit(NVME_NSHEAD_DISK_LIVE, &head->flags)
) {
nvme_cdev_del(&head->cdev, &head->cdev_device);
del_gendisk(head->disk);
}