|| ||Christoph Hellwig <email@example.com> |
|| ||firstname.lastname@example.org, email@example.com, firstname.lastname@example.org |
|| ||[PATCH 0/4] better discard support |
|| ||Thu, 17 Sep 2009 12:25:36 -0400|
|| ||Article, Thread
Trying to make progress on discard again. This is mostly aimed at the
batched discard and SCSI arrays, but the ATA work should also fit in.
Since last time the first two patches got merged in mainline so the
patch series is a bit smaller now. The first one is new and based on
a patch from Willy - we now remove the prepare_discard function, and instead
pass the discard request down as normal FS request. To make that
actually work nicely with the block layer we have to allocate the payload
in the caller. From the layering POV that makes a lot more sense as that
is where the payload is allocated for all other request, and in practice
it works because the single page and single sector is enough for all
implementations that we care about now. But it could become quite
nasty if we get an implementation that doesn't fir into this scheme.
Second patch is the separate limit for the length of discard requests
as they can and should be much larger than normal I/O requests.
Patch 3 and 4 are only included for reference to show a working setup
wit hthe block bits. The SD patch will need quite a bit of work to
look at the unmap limits that are now in SPC.
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html