From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 6A6822CAB; Tue, 18 Jun 2024 06:13:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718691228; cv=none; b=L8m5RPncDVKajL+uXpp5orxt+vJjUVLMIO32KYqMyTPXBShAoar8lll2Vb+pLjMEJPD5L2uMivEb3HvBB8pYB1BsJgzAxMK1AvTVG7cKGMPdBb4R1HhP/lgkq4fSKLecbBfClOlR9EtMWDr1I0U0N/0Eq34Jc3WoEeS4juqbACU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718691228; c=relaxed/simple; bh=FGZejL7sL6LL+VMt6fkBwRt7BuMgFbaT8nQqiOo0j58=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cafPgeQmNkF/c75C87qslMef8xO409b/Vvb1YIrbpQyj+rhlxCPYHmd6WRWVvvSgWfIe5Angz5ngoDClwBdCO+gVJMJ06csQQ9mM4/SAWoNxh7JFi9ppSN4oDoRGqCmKNNfjrgmppuG+bo5zN7/utGV84QilQL3pEV0wFSe2jPU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 1C10267373; Tue, 18 Jun 2024 08:13:41 +0200 (CEST) Date: Tue, 18 Jun 2024 08:13:40 +0200 From: Christoph Hellwig To: Barry Song <21cnbao@gmail.com> Cc: Christoph Hellwig , Andrew Morton , Trond Myklebust , Anna Schumaker , Steve French , linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-mm@kvack.org, Barry Song , Ryan Roberts Subject: Re: [PATCH] nfs: fix nfs_swap_rw for large-folio swap Message-ID: <20240618061340.GA28200@lst.de> References: <20240614100329.1203579-1-hch@lst.de> <20240614100329.1203579-2-hch@lst.de> <20240614112148.cd1961e84b736060c54bdf26@linux-foundation.org> <20240616085436.GA28058@lst.de> <20240617053201.GA16852@lst.de> <20240618055253.GA27945@lst.de> Precedence: bulk X-Mailing-List: linux-cifs@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: User-Agent: Mutt/1.5.17 (2007-11-01) On Tue, Jun 18, 2024 at 06:05:33PM +1200, Barry Song wrote: > Yes, that was exactly what I missed. I then figured it out, reproduced > the issue, > and discovered that the root cause was unrelated to large folios. It > was actually > due to a batched bio plugging optimization from 2022. You can find the new patch > here: > > https://lore.kernel.org/linux-mm/20240617220135.43563-1-21cnbao@gmail.com/ I don't really see any point in keeping the VM_BUG_ON. The underlying direct I/O code doesn't really care about the size at all.