nvme: remove nvme_request::timeout field

This field is write-only in the current code; the NVMe library does
not track timeouts on requests.

Change-Id: I50e53bb3c299bf16912c48be8aad3eec829154af
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-03-09 14:29:00 -07:00
parent 2374599671
commit 17005b5756
6 changed files with 0 additions and 10 deletions

View File

@ -149,7 +149,6 @@ nvme_allocate_request(const struct nvme_payload *payload, uint32_t payload_size,
memset(req, 0, offsetof(struct nvme_request, children));
req->cb_fn = cb_fn;
req->cb_arg = cb_arg;
req->timeout = true;
req->payload = *payload;
req->payload_size = payload_size;

View File

@ -664,11 +664,6 @@ nvme_ctrlr_construct_and_submit_aer(struct spdk_nvme_ctrlr *ctrlr,
return -1;
}
/*
* Disable timeout here, since asynchronous event requests should by
* nature never be timed out.
*/
req->timeout = false;
req->cmd.opc = SPDK_NVME_OPC_ASYNC_EVENT_REQUEST;
nvme_ctrlr_submit_admin_request(ctrlr, req);

View File

@ -173,7 +173,6 @@ struct nvme_request {
*/
struct nvme_payload payload;
uint8_t timeout;
uint8_t retries;
/**

View File

@ -252,7 +252,6 @@ nvme_allocate_request(const struct nvme_payload *payload, uint32_t payload_size,
req->cb_fn = cb_fn;
req->cb_arg = cb_arg;
req->timeout = true;
}
return req;

View File

@ -219,7 +219,6 @@ nvme_allocate_request(const struct nvme_payload *payload, uint32_t payload_size,
req->cb_fn = cb_fn;
req->cb_arg = cb_arg;
req->timeout = true;
return req;
}

View File

@ -147,7 +147,6 @@ nvme_allocate_request(const struct nvme_payload *payload, uint32_t payload_size,
memset(req, 0, offsetof(struct nvme_request, children));
req->cb_fn = cb_fn;
req->cb_arg = cb_arg;
req->timeout = true;
req->payload = *payload;
req->payload_size = payload_size;