lightnvm: fail fast on passthrough commands
authorJavier González <javier@cnexlabs.com>
Fri, 13 Oct 2017 12:46:46 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
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 <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/lightnvm.c

index 1f79e3f..6017153 100644 (file)
@@ -600,8 +600,6 @@ static int nvme_nvm_submit_user_cmd(struct request_queue *q,
 
        rq->timeout = timeout ? timeout : ADMIN_TIMEOUT;
 
 
        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) {
        if (ppa_buf && ppa_len) {
                ppa_list = dma_pool_alloc(dev->dma_pool, GFP_KERNEL, &ppa_dma);
                if (!ppa_list) {