Re: [PATCH v2.5 2/6] scsi_debug: rework resp_report_luns

2016-05-03 Thread Bart Van Assche
On 04/30/2016 07:44 PM, Douglas Gilbert wrote: Based on "[PATH V2] scsi_debug: rework resp_report_luns" patch sent by Tomas Winkler on Thursday, 26 Feb 2015. His notes: 1. Remove duplicated boundary checks which simplify the fill-in loop 2. Use more of scsi generic API Replace fixed l

RE: [PATCH v2.5 2/6] scsi_debug: rework resp_report_luns

2016-05-02 Thread Winkler, Tomas
> -Original Message- > From: Hannes Reinecke [mailto:h...@suse.de] > Sent: Monday, May 02, 2016 11:25 > To: Douglas Gilbert ; linux-scsi@vger.kernel.org > Cc: martin.peter...@oracle.com; Winkler, Tomas > ; emi...@redhat.com; > bart.vanass...@sandisk.com > Subj

Re: [PATCH v2.5 2/6] scsi_debug: rework resp_report_luns

2016-05-02 Thread Hannes Reinecke
On 05/01/2016 04:44 AM, Douglas Gilbert wrote: > Based on "[PATH V2] scsi_debug: rework resp_report_luns" patch > sent by Tomas Winkler on Thursday, 26 Feb 2015. His notes: > 1. Remove duplicated boundary checks which simplify the fill-in > loop > 2. Use more of scsi generic API > Replace

[PATCH v2.5 2/6] scsi_debug: rework resp_report_luns

2016-04-30 Thread Douglas Gilbert
Based on "[PATH V2] scsi_debug: rework resp_report_luns" patch sent by Tomas Winkler on Thursday, 26 Feb 2015. His notes: 1. Remove duplicated boundary checks which simplify the fill-in loop 2. Use more of scsi generic API Replace fixed length response array a with heap allocation allowing