I have Dell Studio 17 (model 1747) laptop with two SSDs (Sandisk Extreme 120GB) that are RAIDed in kernel via MD subsystem. Nothing fancy: RAID 1 for /boot, RAID 0 for / and /home (root and home formatted with ext4). No LVM, no dm-crypt, etc. Until recenlty I wasn't even aware, that mdraid did not support TRIM :) Anyway, after switching to 3.7 RC2 kernel log is filled with these messages when deleting large files: [ 9391.352621] request botched: dev sda: type=1, flags=122d8081 [ 9391.352624] sector 169748741, nr/cnr 0/128 [ 9391.352626] bio ffff880235279840, biotail ffff880231e74600, buffer (null), len 0 [ 9391.352664] request botched: dev sdb: type=1, flags=122d8081 [ 9391.352666] sector 169748741, nr/cnr 0/128 [ 9391.352668] bio ffff880235279600, biotail ffff880231e74300, buffer (null), len 0 [ 9391.362619] request botched: dev sda: type=1, flags=122d8081 [ 9391.362621] sector 169748742, nr/cnr 0/128 [ 9391.362622] bio ffff880231e74f00, biotail ffff880231e74600, buffer (null), len 0 [ 9391.362648] request botched: dev sdb: type=1, flags=122d8081 [ 9391.362650] sector 169748742, nr/cnr 0/128 [ 9391.362651] bio ffff880231e74e40, biotail ffff880231e74300, buffer (null), len 0 [ 9391.372617] request botched: dev sda: type=1, flags=122d8081 [ 9391.372621] sector 169748743, nr/cnr 0/128 [ 9391.372623] bio ffff880231e74600, biotail ffff880231e74600, buffer (null), len 0 [ 9391.372642] request botched: dev sdb: type=1, flags=122d8081 [ 9391.372644] sector 169748743, nr/cnr 0/16 [ 9391.372647] bio ffff880231e74300, biotail ffff880231e74300, buffer (null), len 0 Deleting is very slow, for large files my system hangs for minutes. Had to disable the discard flag. From my short search on "the internet" thing, this problem was already reported in March, and seemingly resolved? Or not?
And yes, TRIM works for any of those Sandisk drives (tested).
Still no go even with 3.7-rc5. Found this, but I'm sure you are aware of that thread :) http://comments.gmane.org/gmane.linux.raid/40667
Yeah! I confirm that applying patches 6 to 8 to 3.7-rc5 solve the problem: http://www.spinics.net/lists/linux-scsi/msg61877.html http://www.spinics.net/lists/linux-scsi/msg61879.html http://www.spinics.net/lists/linux-scsi/msg61882.html
Seems that git-sources 3.7_rc7 has those patches included.