Skip to content

Commit 1e05808

Browse files
committed
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 <[email protected]> Reviewed-by: Matias Bjørling <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent e973c91 commit 1e05808

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/nvme/target/fabrics-cmd.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ static void nvmet_execute_prop_get(struct nvmet_req *req)
6464
case NVME_REG_CSTS:
6565
val = ctrl->csts;
6666
break;
67+
case NVME_REG_CRTO:
68+
val = NVME_CAP_TIMEOUT(ctrl->csts);
69+
break;
6770
default:
6871
status = NVME_SC_INVALID_FIELD | NVME_STATUS_DNR;
6972
break;

0 commit comments

Comments
 (0)