]> asedeno.scripts.mit.edu Git - linux.git/commit
target: Make core_tmr_abort_task() consider all commands
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 23 Dec 2016 12:47:38 +0000 (13:47 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 9 Feb 2017 08:39:11 +0000 (00:39 -0800)
commit3a1e7ca64f2dae69536054c42b7b90e480db1045
treeb7831ff474ca4ebbce2bce48b514ad011c64e695
parent4f4c6c3ddb15af396cd8cf81b487b59261199ee9
target: Make core_tmr_abort_task() consider all commands

It is possible that two commands with the same tag are present on
sess_cmd_list because commands are removed from sess_cmd_list after
a response has been sent to the initiator. Hence continue searching
through sess_cmd_list even if a matching tag has already been found.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Himanshu Madhani <himanshu.madhani@cavium.com>
Cc: Giridhar Malavali <giridhar.malavali@cavium.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_tmr.c