From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 21 Oct 2017 10:11:40 +0200 From: Christoph Hellwig To: Dan Williams Cc: Christoph Hellwig , Jeff Layton , Andrew Morton , Jan Kara , Matthew Wilcox , Dave Hansen , Dave Chinner , "linux-kernel@vger.kernel.org" , "J. Bruce Fields" , Linux MM , Jeff Moyer , Alexander Viro , linux-fsdevel , "Darrick J. Wong" , Ross Zwisler , linux-xfs@vger.kernel.org, "linux-nvdimm@lists.01.org" Subject: Re: [PATCH v3 12/13] dax: handle truncate of dma-busy pages Message-ID: <20171021081140.GA21101@lst.de> References: <150846713528.24336.4459262264611579791.stgit@dwillia2-desk3.amr.corp.intel.com> <150846720244.24336.16885325309403883980.stgit@dwillia2-desk3.amr.corp.intel.com> <1508504726.5572.41.camel@kernel.org> <20171020163221.GB26320@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: On Fri, Oct 20, 2017 at 10:27:22AM -0700, Dan Williams wrote: > I'll take a look at hooking this up through a page-idle callback. Can > I get some breadcrumbs to grep for from XFS folks on how to set/clear > the busy state of extents? As Brian pointed out it's the xfs_extent_busy.c file (and I pointed out the same in a reply to the previous series). Be careful because you'll need a refcount or flags now that there are different busy reasons. I still think we'd be better off just blocking on an elevated page count directly in truncate as that will avoid all the busy list manipulations. -- 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