Who sends this command? If md can assume that determinate mode is always set, then RAID 1 at least would remain consistent. For RAID 5, consistency of the parity information depends on the determinate pattern used and the number of disks. If you used determinate all-zero, then parity information would always be consistent, but this is probably not preferable since every TRIM command would incur an extra write for each bit in each page of the block. -S On Wed, Feb 9, 2011 at 11:19 AM, Eric D. Mudama <edmudama@xxxxxxxxxxxxxxxx> wrote: > On Wed, Feb 9 at 10:00, Scott E. Armitage wrote: >> >> I reiterate my previous reply that under the current md architecture, >> where the complete device is considered to be in use, sending TRIM >> commands makes little sense. AFAICT, reading back a trimmed page is >> not defined, since the whole idea is that the host doesn't care about >> what is on that page any more. >> >> The next time md comes around to corresponding trimmed pages on two >> SSDs, their contents may differ, and all of a sudden our array is no >> longer consistent. > > For SATA devices, ATA8-ACS2 addresses this through Deterministic Read > After Trim in the DATA SET MANAGEMENT command. Devices can be > indeterminate, determinate with a non-zero pattern (often all-ones) or > determinate all-zero for sectors read after being trimmed. > > --eric > > -- > Eric D. Mudama > edmudama@xxxxxxxxxxxxxxxx > > -- Scott Armitage, B.A.Sc., M.A.Sc. candidate Space Flight Laboratory University of Toronto Institute for Aerospace Studies 4925 Dufferin Street, Toronto, Ontario, Canada, M3H 5T6 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html