nvme: move ->retries setup to nvme_setup_cmd
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:18:08 +0000 (19:18 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 5 Apr 2017 18:05:08 +0000 (12:05 -0600)
commit987f699a8f6c9a724e970c1bb4cde2e2c6a52010
tree5777fff8374a6628112037ca8ba2b614506d337c
parent8e14be53f470b47d044d9d552bdc3bb4c6723276
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>
drivers/nvme/host/core.c
drivers/nvme/host/pci.c