linux/drivers/nvme/target
James Smart 619c62dcc6 nvmet-fc: correct ref counting error when deferred rcv used
Whenever a cmd is received a reference is taken while looking up the
queue. The reference is removed after the cmd is done as the iod is
returned for reuse. The fod may be reused for a deferred (recevied but
no job context) cmd.  Existing code removes the reference only if the
fod is not reused for another command. Given the fod may be used for
one or more ios, although a reference was taken per io, it won't be
matched on the frees.

Remove the reference on every fod free. This pairs the references to
each io.

Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2017-11-20 08:38:12 +01:00
..
Kconfig nvme-fabrics: Add FC LLDD loopback driver to test FC-NVME 2016-12-06 14:51:48 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
admin-cmd.c nvmet: remove redundant local variable 2017-11-10 19:53:25 -07:00
configfs.c nvmet: make config_item_type const 2017-10-19 16:15:28 +02:00
core.c Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block 2017-11-14 15:32:19 -08:00
discovery.c nvme: use a single NVME_AQ_DEPTH and relax it to 32 2017-06-28 08:14:13 -06:00
fabrics-cmd.c nvmet: implement valid sqhd values in completions 2017-09-25 08:56:05 -06:00
fc.c nvmet-fc: correct ref counting error when deferred rcv used 2017-11-20 08:38:12 +01:00
fcloop.c nvme-fcloop: fix port deletes and callbacks 2017-09-25 12:42:11 -06:00
io-cmd.c nvmet: kill nvmet_inline_bio_init 2017-11-10 19:53:25 -07:00
loop.c nvme-loop: check if queue is ready in queue_rq 2017-11-20 08:28:36 +01:00
nvmet.h Merge branch 'for-4.15/block' of git://git.kernel.dk/linux-block 2017-11-14 15:32:19 -08:00
rdma.c nvmet: better data length validation 2017-11-10 19:53:25 -07:00