]> 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)
commit89e0cde81ab67e68e2069dcfeef34fb2821d9ca3
tree5777fff8374a6628112037ca8ba2b614506d337c
parent137176f861e7714f128cce2864e2fc2dd1e6142f
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