diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-05 19:18:08 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-05 20:05:08 +0200 |
commit | 987f699a8f6c9a724e970c1bb4cde2e2c6a52010 (patch) | |
tree | 5777fff8374a6628112037ca8ba2b614506d337c /drivers/nvme/host/pci.c | |
parent | remove the obsolete hd driver (diff) | |
download | linux-987f699a8f6c9a724e970c1bb4cde2e2c6a52010.tar.xz linux-987f699a8f6c9a724e970c1bb4cde2e2c6a52010.zip |
nvme: move ->retries setup to nvme_setup_cmd
->retries is counting the number of times a command is resubmitted, and
be cleared on the first time we see the command. We currently don't do
that for non-PCIe command, which is easily fixed by moving the setup
to common code.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/nvme/host/pci.c')
-rw-r--r-- | drivers/nvme/host/pci.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c index 9e686a67d93b..3818ab15a26e 100644 --- a/drivers/nvme/host/pci.c +++ b/drivers/nvme/host/pci.c @@ -326,10 +326,6 @@ static int nvme_init_iod(struct request *rq, struct nvme_dev *dev) iod->nents = 0; iod->length = size; - if (!(rq->rq_flags & RQF_DONTPREP)) { - rq->retries = 0; - rq->rq_flags |= RQF_DONTPREP; - } return BLK_MQ_RQ_QUEUE_OK; } |