Re: [PATCH 2/3] sd: Reject optimal transfer length smaller than page size

2015-12-17 Thread Ewan Milne
On Wed, 2015-12-16 at 17:53 -0500, Martin K. Petersen wrote: > Eryu Guan reported that loading scsi_debug would fail. This turned out > to be caused by scsi_debug reporting an optimal I/O size of 32KB which > is smaller than the 64KB page size on the PowerPC system in question. > > Add a check to

Re: [PATCH 2/3] sd: Reject optimal transfer length smaller than page size

2015-12-16 Thread Douglas Gilbert
On 15-12-16 05:53 PM, Martin K. Petersen wrote: Eryu Guan reported that loading scsi_debug would fail. This turned out to be caused by scsi_debug reporting an optimal I/O size of 32KB which is smaller than the 64KB page size on the PowerPC system in question. Add a check to ensure that we only u

[PATCH 2/3] sd: Reject optimal transfer length smaller than page size

2015-12-16 Thread Martin K. Petersen
Eryu Guan reported that loading scsi_debug would fail. This turned out to be caused by scsi_debug reporting an optimal I/O size of 32KB which is smaller than the 64KB page size on the PowerPC system in question. Add a check to ensure that we only use the device-reported OPTIMAL TRANSFER LENGTH if