Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 905FD537FC for ; Thu, 11 Jan 2024 23:03:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="TvrWFyKE" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description; bh=VTRlnr7nTsltwjauiUwkQ3mYBh3OaNcgbyMuz/Pdong=; b=TvrWFyKE+rnrzg4URzp5YFvz3L 8o8sjzCRkYmV4NCK1bBgHeyoh771KfGPpwxfcafQvFILyYYEZG/tK01FmoqtzK6956C+dGIMEAiB8 ZbHgXDhvBFRICys8zCAxlJJKDXrTq4bUQVffHcTlYsKJe0y1HgfXdBgSsnDdIPHgeeO/7reJ7SamD IIE3RqeiV7UCSb9CweaQp6wLuKlOpTlEG6Se6I+sx+UZ1GxTTz2yk0EA1IBXUGW1NsUAC6glXOd5+ DW0gZQWvVR8WyADFmyG9pUlo1TvCGMJmIuzNXifZnVwyi1gdPOJGNfXINQ7W8qaX1UambaANaanFH PQ+K+GUQ==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1rO45C-00FDK3-K8; Thu, 11 Jan 2024 23:03:30 +0000 Date: Thu, 11 Jan 2024 23:03:30 +0000 From: Matthew Wilcox To: David Howells , linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] filemap: Convert generic_perform_write() to support large folios Message-ID: References: <20240111192513.3505769-1-willy@infradead.org> Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Jan 11, 2024 at 07:57:08PM +0000, Matthew Wilcox wrote: > I'm just doing an xfstests run now, but I think this will fix the problem > (it's up to 400 seconds after crashing at 6 seconds the first time). > Essentially if we pass in a length larger than the folio we find, we > just clamp the amount of work we do to the size of the folio. No, that's not enough. It dies in submit_bh_wbc() at the BUG_ON(buffer_delay(bh)); I have no idea why. Since Dave tells me he's not using generic_perform_write(), and the only possible user would be the bs>PS work, I'm going to abandon this for now.