]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: factor request completion code into a common helper
authorChristoph Hellwig <hch@lst.de>
Thu, 30 Mar 2017 11:41:32 +0000 (13:41 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 4 Apr 2017 15:48:23 +0000 (09:48 -0600)
commitf401f17c95e4211f6727ebee4d66dc2534274f03
treebee45db17a2a2f705c939f0769671008c3b3fda3
parente3cb07c4ab7618d69c27b92d9a7feb9dffaed319
nvme: factor request completion code into a common helper

This avoids duplicating the logic four times, and it also allows to keep
some helpers static in core.c or just opencode them.

Note that this loses printing the aborted status on completions in the
PCI driver as that uses a data structure not available any more.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
drivers/nvme/host/fc.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c
drivers/nvme/host/rdma.c
drivers/nvme/target/loop.c