Re: [PATCHv5 2/2] tcmu: Fix wrongly calculating of the base_command_size

2017-03-28 Thread Mike Christie
On 03/27/2017 04:07 AM, lixi...@cmss.chinamobile.com wrote: > From: Xiubo Li > > The t_data_nents and t_bidi_data_nents are the numbers of the > segments, but it couldn't be sure the block size equals to size > of the segment. > > For the worst case, all the blocks

[PATCHv5 2/2] tcmu: Fix wrongly calculating of the base_command_size

2017-03-27 Thread lixiubo
From: Xiubo Li The t_data_nents and t_bidi_data_nents are the numbers of the segments, but it couldn't be sure the block size equals to size of the segment. For the worst case, all the blocks are discontiguous and there will need the same number of iovecs, that's