aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/target/admin-cmd.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2019-06-28 09:53:30 -0700
committerChristoph Hellwig <hch@lst.de>2019-07-09 14:15:37 -0700
commit9d05a96e298aadb36e3ec971fab8d416e6fb7331 (patch)
tree9c504202160ee7cf018a6e5ef3b0f3973c3c1752 /drivers/nvme/target/admin-cmd.c
parentnvme-trace: add delete completion and submission queue to admin cmds tracer (diff)
downloadlinux-dev-9d05a96e298aadb36e3ec971fab8d416e6fb7331.tar.xz
linux-dev-9d05a96e298aadb36e3ec971fab8d416e6fb7331.zip
nvmet: export I/O characteristics attributes in Identify
Make the NVMe NAWUN, NAWUPF, NACWU, NPWG, NPWA, NPDG and NOWS attributes available to initator systems for the block backend. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/admin-cmd.c')
-rw-r--r--drivers/nvme/target/admin-cmd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c
index 9f72d515fc4b..4dc12ea52f23 100644
--- a/drivers/nvme/target/admin-cmd.c
+++ b/drivers/nvme/target/admin-cmd.c
@@ -442,6 +442,9 @@ static void nvmet_execute_identify_ns(struct nvmet_req *req)
break;
}
+ if (ns->bdev)
+ nvmet_bdev_set_limits(ns->bdev, id);
+
/*
* We just provide a single LBA format that matches what the
* underlying device reports.