On 05/05/2017 12:50 AM, Bart Van Assche wrote: > 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@xxxxxxxxxxx> > Cc: Hannes Reinecke <hare@xxxxxxxx> > Cc: Christoph Hellwig <hch@xxxxxx> > Cc: Andy Grover <agrover@xxxxxxxxxx> > Cc: David Disseldorp <ddiss@xxxxxxx> > --- > drivers/target/iscsi/iscsi_target.c | 4 +--- > drivers/target/iscsi/iscsi_target_util.c | 29 +++++++++++++---------------- > drivers/target/iscsi/iscsi_target_util.h | 2 +- > 3 files changed, 15 insertions(+), 20 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@xxxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg) -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html