[patch 1/1] raid0: prevent unaligned discard requests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a simple patch that prevents blkdev_issue_discard() from issuing mis-aligned REQ_DISCARD to raid0.
Currently, raid0 only sets max_discard_sectors equal to chunk size.  But that will only break a larger discard request
into multiple chunk sized requests.  It will not align those requests.  If the original (big) request is not chunk-aligned,
blkdev_issue_discard() will issue mis-aligned chunk-sized discards to raid0, and raid0 will have to split them all.
The patch comment had example block traces that illustrates the problem.


Attachment: raid0_prevent_unaligned_discard_requests.patch
Description: Binary data


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux