Skip to content

Commit

Permalink
NVMe: End sync requests immediately on failure
Browse files Browse the repository at this point in the history
Do not retry failed sync commands so the original status may be seen
without issuing unnecessary retries.

Signed-off-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Keith Busch authored and axboe committed May 29, 2015
1 parent f4ff414 commit 75619bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/block/nvme-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ int __nvme_submit_sync_cmd(struct request_queue *q, struct nvme_command *cmd,
return PTR_ERR(req);

req->cmd_type = REQ_TYPE_DRV_PRIV;
req->cmd_flags = REQ_FAILFAST_DRIVER;
req->__data_len = 0;
req->__sector = (sector_t) -1;
req->bio = req->biotail = NULL;
Expand Down

0 comments on commit 75619bf

Please sign in to comment.