linux/drivers/nvme/target
Max Gurtovoy 16686f3a6c nvme: move common call to nvme_cleanup_cmd to core layer
nvme_cleanup_cmd should be called for each call to nvme_setup_cmd
(symmetrical functions). Move the call for nvme_cleanup_cmd to the common
core layer and call it during nvme_complete_rq for the good flow. For
error flow, each transport will call nvme_cleanup_cmd independently. Also
take care of a special case of path failure, where we call
nvme_complete_rq without doing nvme_setup_cmd.

Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-11-04 10:56:41 -07:00
..
admin-cmd.c nvmet: fix a wrong error status returned in error log page 2019-09-12 08:50:46 -07:00
configfs.c nvmet: Fix use-after-free bug when a port is removed 2019-07-31 17:57:06 -07:00
core.c nvmet: add unlikely check at nvmet_req_alloc_sgl 2019-11-04 10:56:40 -07:00
discovery.c nvmet: Use PTR_ERR_OR_ZERO() in nvmet_init_discovery() 2019-09-12 08:50:46 -07:00
fabrics-cmd.c nvme: introduce nvme_is_fabrics to check fabrics cmd 2019-06-21 11:08:38 +02:00
fc.c nvme-fc and nvmet-fc: sync with FC-NVME-2 header changes 2019-11-04 10:56:40 -07:00
fcloop.c nvme-fcloop: resolve warnings on RCU usage and sleep warnings 2019-07-09 13:16:09 -07:00
io-cmd-bdev.c nvmet: use bio_io_error instead of duplicating it 2019-11-04 10:56:40 -07:00
io-cmd-file.c nvmet-file: clamp-down file namespace lba_shift 2019-04-25 16:51:19 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
loop.c nvme: move common call to nvme_cleanup_cmd to core layer 2019-11-04 10:56:41 -07:00
Makefile nvmet: introduce target-side trace 2019-06-21 11:15:46 +02:00
nvmet.h nvmet: Fix use-after-free bug when a port is removed 2019-07-31 17:57:06 -07:00
rdma.c nvmet-rdma: add unlikely check at nvmet_rdma_map_sgl_keyed 2019-11-04 10:56:41 -07:00
tcp.c nvmet-tcp: remove superflous check on request sgl 2019-09-25 12:53:14 -07:00
trace.c nvmet: trace: parse Get LBA Status command in detail 2019-08-29 12:55:01 -07:00
trace.h nvmet: introduce target-side trace 2019-06-21 11:15:46 +02:00