Re: [PATCH 07/17] nvme: remove the NVME_NS_DEAD check in nvme_validate_ns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




We never rescan namespaces after marking them dead, so this check is dead
now.

scan_work can still run, I'd keep this one.


Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
  drivers/nvme/host/core.c | 4 ----
  1 file changed, 4 deletions(-)

diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c
index 2ec838e608509..99eabbe7fac98 100644
--- a/drivers/nvme/host/core.c
+++ b/drivers/nvme/host/core.c
@@ -4333,10 +4333,6 @@ static void nvme_validate_ns(struct nvme_ns *ns, struct nvme_ns_info *info)
  {
  	int ret = NVME_SC_INVALID_NS | NVME_SC_DNR;
- if (test_bit(NVME_NS_DEAD, &ns->flags))
-		goto out;
-
-	ret = NVME_SC_INVALID_NS | NVME_SC_DNR;
  	if (!nvme_ns_ids_equal(&ns->head->ids, &info->ids)) {
  		dev_err(ns->ctrl->device,
  			"identifiers changed for nsid %d\n", ns->head->ns_id);



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux