From: Keith Busch Date: Thu, 28 May 2015 15:48:55 +0000 (-0600) Subject: NVMe: End sync requests immediately on failure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75619bfa904d0f2840b4274eb92ce47b2e1c472e;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jens Axboe --- 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, 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;