All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2 0/2] sd fixes and cleanup
@ 2017-09-01  1:07 Damien Le Moal
  2017-09-01  1:07 ` [PATCH V2 1/2] scsi: sd: Fix sd_config_write_same() Damien Le Moal
  2017-09-01  1:07 ` [PATCH V2 2/2] scsi: sd: Use sectors_to_logical() Damien Le Moal
  0 siblings, 2 replies; 6+ messages in thread
From: Damien Le Moal @ 2017-09-01  1:07 UTC (permalink / raw)
  To: linux-scsi, Martin K . Petersen
  Cc: Jens Axboe, Christoph Hellwig, Bart Van Assche

A couple of patches in this small series.

The first patch addresses a problem with large write same (or zeroout) block
layer calls being split into commands that are not aligned on the device
physical block size. This will work on regular disks but is not optimal.
The commands will however fail with host-managed zoned block device if the
commands target sequential write required zones. The patch simply makes sure
that the maximum write same sectors is aligned to physical block sizes.
This solution can be implemented here in sd_config_write_same() or in the block
layer (__blkdev_issue_write_same() and __blkdev_issue_write_zeroes()). Please
let me know if you prefer a block layer solution.

The second patch does not introduce functional changes.

As always, comments are welcome !

changes from V1:
* Removed useless addition of blank line an indentaion change in first patch.

Damien Le Moal (2):
  scsi: sd: Fix sd_config_write_same()
  scsi: sd: Use sectors_to_logical()

 drivers/scsi/sd.c | 37 +++++++++++++++++++++++++++++--------
 1 file changed, 29 insertions(+), 8 deletions(-)

-- 
2.13.5

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-09-01  8:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-01  1:07 [PATCH V2 0/2] sd fixes and cleanup Damien Le Moal
2017-09-01  1:07 ` [PATCH V2 1/2] scsi: sd: Fix sd_config_write_same() Damien Le Moal
2017-09-01  3:36   ` Martin K. Petersen
2017-09-01  8:45     ` Damien Le Moal
2017-09-01  1:07 ` [PATCH V2 2/2] scsi: sd: Use sectors_to_logical() Damien Le Moal
2017-09-01  3:24   ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.