target/tcm_loop: Use target_submit_tmr() instead of open-coding this function
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 23 May 2017 23:48:41 +0000 (16:48 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:25 +0000 (23:11 -0700)
commit75f141aaf48e13812b4fee914a66f6fce28b543f
tree3ecfd65403e2abfbe710ed9113cb5b81a9a7ab20
parentd17203c41185a05ecd4d1fc647f16b17ab1b27ae
target/tcm_loop: Use target_submit_tmr() instead of open-coding this function

Use target_submit_tmr() instead of open-coding this function. The
only functional change is that TMFs are now added to sess_cmd_list,
something the current code does not do. This behavior change is a
bug fix because it makes LUN RESETs wait for other TMFs that are in
progress for the same LUN.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.com>
Cc: David Disseldorp <ddiss@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/loopback/tcm_loop.c