]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7550fb8cb20ea92bad9161a37fa1502e65c83a5b
tree5777fff8374a6628112037ca8ba2b614506d337c
parentbb56d840bd69d073b07156bd2909a0b5190996e7
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