mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
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 <hch@lst.de> Reviewed-by: Matias Bjørling <matias.bjorling@wdc.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
e973c91727
commit
1e058089d2
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user