From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Re: [RFC PATCH] discarding swap From: David Woodhouse In-Reply-To: References: <20080910173518.GD20055@kernel.dk> Content-Type: text/plain; charset=UTF-8 Date: Wed, 10 Sep 2008 14:28:37 -0700 Message-Id: <1221082117.13621.25.camel@macbook.infradead.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org Return-Path: To: Hugh Dickins Cc: Jens Axboe , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org List-ID: 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 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org