Commit 1e058089 authored by Keith Busch's avatar Keith Busch
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarMatias Bjørling <matias.bjorling@wdc.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent e973c917
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;