Re: [PATCHv2 4/5] target/user: Fix wrongly calculating of the base_command_size

2017-03-16 Thread Xiubo Li
On 2017年03月08日 16:45, lixi...@cmss.chinamobile.com wrote: From: Xiubo Li The t_data_nents and t_bidi_data_nents are all the numbers of the segments, and we couldn't be sure the size of the data area block will equal to size of the segment. Use the actually block number needed intead of the sum

[PATCHv2 4/5] target/user: Fix wrongly calculating of the base_command_size

2017-03-08 Thread lixiubo
From: Xiubo Li The t_data_nents and t_bidi_data_nents are all the numbers of the segments, and we couldn't be sure the size of the data area block will equal to size of the segment. Use the actually block number needed intead of the sum of segments. Signed-off-by: Xiubo Li --- drivers/target/