diff options
author | James Smart | 2017-11-10 15:38:45 -0800 |
---|---|---|
committer | Christoph Hellwig | 2017-11-20 08:38:12 +0100 |
commit | 619c62dcc62b957d17cccde2081cad527b020883 (patch) | |
tree | 10a94ce026c096a2f40d2ec663691f153463b785 /drivers/nvme/host/pci.c | |
parent | 9941a862cc92e448df95709ff40a618964b25e33 (diff) |
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>
Diffstat (limited to 'drivers/nvme/host/pci.c')
0 files changed, 0 insertions, 0 deletions