Commit 75619bfa authored by Keith Busch's avatar Keith Busch Committed by Jens Axboe

NVMe: End sync requests immediately on failure

Do not retry failed sync commands so the original status may be seen
without issuing unnecessary retries.
Signed-off-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent f4ff414a
...@@ -1010,6 +1010,7 @@ int __nvme_submit_sync_cmd(struct request_queue *q, struct nvme_command *cmd, ...@@ -1010,6 +1010,7 @@ int __nvme_submit_sync_cmd(struct request_queue *q, struct nvme_command *cmd,
return PTR_ERR(req); return PTR_ERR(req);
req->cmd_type = REQ_TYPE_DRV_PRIV; req->cmd_type = REQ_TYPE_DRV_PRIV;
req->cmd_flags = REQ_FAILFAST_DRIVER;
req->__data_len = 0; req->__data_len = 0;
req->__sector = (sector_t) -1; req->__sector = (sector_t) -1;
req->bio = req->biotail = NULL; req->bio = req->biotail = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment