From: Javier González Date: Fri, 13 Oct 2017 12:46:46 +0000 (+0200) Subject: lightnvm: fail fast on passthrough commands X-Git-Tag: microblaze-4.16-rc1~374^2~139 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;ds=sidebyside;h=1b839187db62aae22a9254fd9e3ce376149b0918;p=linux-2.6-microblaze.git lightnvm: fail fast on passthrough commands Make LightNVM passhtrough commands fail fast. User space will then take care of re-submitting. Fixes: 84d4add793c6 ('lightnvm: add ioctls for vector I/Os') Signed-off-by: Javier González Signed-off-by: Matias Bjørling Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index 1f79e3f141e6..6017153c2439 100644 --- a/drivers/nvme/host/lightnvm.c +++ b/drivers/nvme/host/lightnvm.c @@ -600,8 +600,6 @@ static int nvme_nvm_submit_user_cmd(struct request_queue *q, rq->timeout = timeout ? timeout : ADMIN_TIMEOUT; - rq->cmd_flags &= ~REQ_FAILFAST_DRIVER; - if (ppa_buf && ppa_len) { ppa_list = dma_pool_alloc(dev->dma_pool, GFP_KERNEL, &ppa_dma); if (!ppa_list) {