From: Keith Busch Date: Mon, 4 Nov 2024 22:17:59 +0000 (-0800) Subject: nvmet: implement crto property X-Git-Tag: v6.13-rc1~211^2~11^2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1e058089d28f58bd194d3c0f06512f42079f5a1d;p=thirdparty%2Fkernel%2Flinux.git nvmet: implement crto property This property is required for nvme 2.1. The target only supports ready with media, so this is just the same value as CAP.TO. Reviewed-by: Christoph Hellwig Reviewed-by: Matias Bjørling Signed-off-by: Keith Busch --- diff --git a/drivers/nvme/target/fabrics-cmd.c b/drivers/nvme/target/fabrics-cmd.c index 28a84af1b4c03..c49904ebb6c2d 100644 --- a/drivers/nvme/target/fabrics-cmd.c +++ b/drivers/nvme/target/fabrics-cmd.c @@ -64,6 +64,9 @@ static void nvmet_execute_prop_get(struct nvmet_req *req) case NVME_REG_CSTS: val = ctrl->csts; break; + case NVME_REG_CRTO: + val = NVME_CAP_TIMEOUT(ctrl->csts); + break; default: status = NVME_SC_INVALID_FIELD | NVME_STATUS_DNR; break;