summaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi/iscsi_target_util.c
diff options
context:
space:
mode:
authorBart Van Assche2017-05-24 01:48:42 +0200
committerNicholas Bellinger2017-07-07 08:11:25 +0200
commit4c1f0e65397f4e5768b955c32489d5b4b6b92a90 (patch)
tree3253af4701f701b736e5b784bc4eb91d8ee5127f /drivers/target/iscsi/iscsi_target_util.c
parenttarget/tcm_loop: Use target_submit_tmr() instead of open-coding this function (diff)
downloadkernel-qcow2-linux-4c1f0e65397f4e5768b955c32489d5b4b6b92a90.tar.gz
kernel-qcow2-linux-4c1f0e65397f4e5768b955c32489d5b4b6b92a90.tar.xz
kernel-qcow2-linux-4c1f0e65397f4e5768b955c32489d5b4b6b92a90.zip
target/tcm_loop: Make TMF processing slightly faster
Target drivers must guarantee that struct se_cmd and struct se_tmr_req exist as long as target_tmr_work() is in progress. This is why the tcm_loop driver today passes 1 as second argument to transport_generic_free_cmd() from inside the TMF code. Instead of making the TMF code wait, make the TMF code obtain two references (SCF_ACK_KREF) and drop one reference from inside the .check_stop_free() callback. 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>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_util.c')
0 files changed, 0 insertions, 0 deletions