Re: [PATCH V3 1/2] scsi: sd: Fix sd_config_write_same()

2017-09-25 Thread Martin K. Petersen
Damien, > Reporting a maximum number of blocks that is not aligned on the device > physical size would cause a large write same request to be split into > physically unaligned chunks by __blkdev_issue_write_zeroes() and > __blkdev_issue_write_same(), even if the caller of these functions > took c

Re: [PATCH V3 1/2] scsi: sd: Fix sd_config_write_same()

2017-09-12 Thread Bart Van Assche
On Tue, 2017-09-05 at 20:55 +0900, Damien Le Moal wrote: > Reporting a maximum number of blocks that is not aligned on the device > physical size would cause a large write same request to be split into > physically unaligned chunks by __blkdev_issue_write_zeroes() and > __blkdev_issue_write_same(),

[PATCH V3 1/2] scsi: sd: Fix sd_config_write_same()

2017-09-05 Thread Damien Le Moal
Reporting a maximum number of blocks that is not aligned on the device physical size would cause a large write same request to be split into physically unaligned chunks by __blkdev_issue_write_zeroes() and __blkdev_issue_write_same(), even if the caller of these functions took care to align its req