NVMe: End sync requests immediately on failure
authorKeith Busch <keith.busch@intel.com>
Thu, 28 May 2015 15:48:55 +0000 (09:48 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 29 May 2015 16:10:30 +0000 (10:10 -0600)
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>
drivers/block/nvme-core.c

index 4eb9917b2a7a42f326efeb5551869ee77f07aa12..6ed1356e9eb589ad4e6ff08f69f178cb95e84402 100644 (file)
@@ -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;