Messages in this thread | | | Date | Mon, 04 May 2009 18:28:07 +0300 | From | Boaz Harrosh <> | Subject | Re: New TRIM/UNMAP tree published (2009-05-02) |
| |
On 05/04/2009 01:47 AM, Jeff Garzik wrote: > James Bottomley wrote: >> The ideal for REQ_TYPE_DISCARD seems to be to force a page allocation >> tied to a bio when it's issued at the top. That way everyone has enough >> memory when it comes down the stack (both extents and WRITE SAME sector >> will fit into a page ... although only just for WRITE SAME on 4k >> sectors). > > Makes sense... > > Jeff >
I second that, let the allocator of the request supply a buffer and free it on return/done. Perhaps with a general helper that does all that.
Boaz
| |