diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-06-22 23:53:00 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-07-02 22:44:31 +0200 |
commit | ed88f055788a89598c33d183652af8a84dfc5007 (patch) | |
tree | d0b245c4755efca0d31c7968b18a8fa4059c5136 /drivers/infiniband | |
parent | scsi: target: Simplify the code for waiting for command completion (diff) | |
download | linux-ed88f055788a89598c33d183652af8a84dfc5007.tar.xz linux-ed88f055788a89598c33d183652af8a84dfc5007.zip |
scsi: target/iscsi: Reduce number of __iscsit_free_cmd() callers
Instead of calling __iscsit_free_cmd() from inside iscsit_aborted_task() if
a command has been aborted and from inside iscsit_free_cmd() if a command
has not been aborted, call __iscsit_free_cmd() from inside
lio_release_cmd(). The latter function is namely called for all commands
once the reference count has dropped to zero.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Cc: Varun Prakash <varun@chelsio.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/infiniband')
0 files changed, 0 insertions, 0 deletions