Re: [RFC PATCH] discarding swap

David Woodhouse
2008-09-10T21:28:37Z

On Wed, 2008-09-10 at 20:51 +0100, Hugh Dickins wrote:
> [PATCH] block: adjust blkdev_issue_discard for swap

blkdev_issue_discard() is for naA?ve callers who don't want to have to
think about barriers. You might benefit from issuing discard requests
without an implicit softbarrier, for swap.

Of course, you then have to ensure that a discard can't still be
in-flight and actually happen _after_ a subsequent write to that page.

--
David Woodhouse Open Source Technology Centre
David.Woodhouse@intel.com Intel Corporation