aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2015-05-28 11:48:55 -0400
committerJens Axboe <axboe@fb.com>2015-05-29 12:10:30 -0400
commit75619bfa904d0f2840b4274eb92ce47b2e1c472e (patch)
treeab48324a27d857ddd43d2899cf0f8bfcb94e6684 /drivers/block
parentf4ff414aeb472397d3b4fc15c22ca65bab219ec8 (diff)
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: Keith Busch <keith.busch@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/nvme-core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c
index 4eb9917b2a7a..6ed1356e9eb5 100644
--- a/drivers/block/nvme-core.c
+++ b/drivers/block/nvme-core.c
@@ -1010,6 +1010,7 @@ int __nvme_submit_sync_cmd(struct request_queue *q, struct nvme_command *cmd,
1010 return PTR_ERR(req); 1010 return PTR_ERR(req);
1011 1011
1012 req->cmd_type = REQ_TYPE_DRV_PRIV; 1012 req->cmd_type = REQ_TYPE_DRV_PRIV;
1013 req->cmd_flags = REQ_FAILFAST_DRIVER;
1013 req->__data_len = 0; 1014 req->__data_len = 0;
1014 req->__sector = (sector_t) -1; 1015 req->__sector = (sector_t) -1;
1015 req->bio = req->biotail = NULL; 1016 req->bio = req->biotail = NULL;