]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: RDMA/srpt: Fix a credit leak for aborted commands
authorBart Van Assche <bvanassche@acm.org>
Fri, 25 Jan 2019 18:34:51 +0000 (10:34 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Feb 2019 02:32:01 +0000 (21:32 -0500)
commit310c14db48a76b354a545f83d0ff820c7c8bbdc4
treef1440b589862242208a77154958c65324b0aa923
parent9a05cae3724618ac52407ff8674911d10cde167d
scsi: RDMA/srpt: Fix a credit leak for aborted commands

Make sure that the next time a response is sent to the initiator that the
credit it had allocated for the aborted request gets freed.

Cc: Doug Ledford <dledford@redhat.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Fixes: 9c8d2f440d8d ("target: Add TFO->abort_task for aborted task resources release") # v3.15
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/infiniband/ulp/srpt/ib_srpt.c