]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target/iscsi: Remove second argument of __iscsit_free_cmd()
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 23 May 2017 23:48:43 +0000 (16:48 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Fri, 7 Jul 2017 06:11:26 +0000 (23:11 -0700)
commit4412a67131a037fa1d032bcd50270e9d336a775d
treec4db961dcc2f01c62d0b34c7b73be17d108229d1
parent4c1f0e65397f4e5768b955c32489d5b4b6b92a90
target/iscsi: Remove second argument of __iscsit_free_cmd()

Initialize .data_direction to DMA_NONE in iscsit_allocate_cmd()
such that the second argument of __iscsit_free_cmd() can be left
out. Note: this patch causes the first part of __iscsit_free_cmd()
no longer to be skipped for TMFs. That's fine since no data
segments are associated with TMFs.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Andy Grover <agrover@redhat.com>
Cc: David Disseldorp <ddiss@suse.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c
drivers/target/iscsi/iscsi_target_util.c
drivers/target/iscsi/iscsi_target_util.h