[PATCH review for 4.9 41/50] target/iscsi: Fix unsolicited data seq_end_offset calculation

2017-09-24 Thread Levin, Alexander (Sasha Levin)
From: Varun Prakash [ Upstream commit 4d65491c269729a1e3b375c45e73213f49103d33 ] In case of unsolicited data for the first sequence seq_end_offset must be set to minimum of total data length and FirstBurstLength, so do not add cmd->write_data_done to the min of total data

[PATCH review for 4.9 41/50] target/iscsi: Fix unsolicited data seq_end_offset calculation

2017-09-24 Thread Levin, Alexander (Sasha Levin)
From: Varun Prakash [ Upstream commit 4d65491c269729a1e3b375c45e73213f49103d33 ] In case of unsolicited data for the first sequence seq_end_offset must be set to minimum of total data length and FirstBurstLength, so do not add cmd->write_data_done to the min of total data length and