From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796307973; b=c13AKbci+1YG94hVrEyL3fsWee2vDPrHHmQbpiBpcclzPU6Y0jRgaB3JT0Z/Id+o026c OBzOo4+ECexnT3WLXXykJS8WSysw14MwgdtcZuhNlq7Z2UKGqrLJw1b/wIcLo58eTq9Tl 13K105oF/FSsE/u+PhKLsA/06+CAFU/9pUGlndAjzJZRkC9mr4VoQtXde+dTGwlgH2rfy mfY0asfq1uFLnRSGFgNoHebIX5ST3iFA0zo0y3eMOLZmDncvsSKInM2OUrCgKjQsvGMEa Iom1zUT5teJawjqbEzFHktq9ASS0im6sH+XVHcleCM31wqHvi+kDe8AQ6/c5FkWK1Dw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796307973; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=v3UxafYWgLdbjIpHhDuxeUn+AyrKbEMdPYZZ2hin4BM=; b=4E96z3pcV7EQ1JoP7KmKoSTTdm4DuTFIUom79END6g+Vrer96JjksHAIkald+X0kOPB4 KZc4ufd+q5+rl97A6M6SzNRzV/fCihu7En+3Tr3ergevRksqlXNZ0Gup2Ifo8ew7uOXiS h6GD9WbZ64ZeLXtB+xeQK/7tJuQpKK/NuL4pl8GasilVMR9OoMG4VviCFrVNLu11sJdsu tIDqVNg0hZOebpC0G+jBpa20cDMWINRzWzmkHdIKuidHwJ9+GnWtcQ6vIXucuOjOkRzNR SCD9R3mTqjCIYdyQ6p/rTrkN86KYy4mcVoWMeSvZg36IUXo4yTtnwP4I2Q0zfigQfXw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=byJ4uC1a; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C0FB606A32C; Thu, 3 Dec 2026 14:26:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=byJ4uC1a Received: by smtp.kernel.org (Postfix) with ESMTPSA id 134B21F00893; Thu, 3 Dec 2026 14:26:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796307972; bh=v3UxafYWgLdbjIpHhDuxeUn+AyrKbEMdPYZZ2hin4BM=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=byJ4uC1a3lynQsD1QIx5RPTWfXUBfKM9s60fsaxp9jPh59q0sqhNS0lih/lHfogI8 zVoBk2FAtcUy/d3EYs91ocmJ01YDMO8vDBX9JDUHufVKGtB+Q35/7HHoNIDqrbfrIW z2dtJ52PzKEaimVeACRiFOoUkUXTHc2OxZClAXrFEzjlxXgJI4JuU7wdS6ncXMkGCF lnFk5SPohueNT4Ln0JuGkYdLPzAgQLgtQUbolOJWDgFc9T3a+aTMQLzPP/8qvPtAO5 G6b3sg9Of3kWMBW4UtmR48halcAX0iNFsgM3Tc3Gy+tkzEv6XBgp7G+PO1xUiAOOJj 2aFZaPVZdEEPA== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 3/4] mm/filemap: don't drop dropbehind folios with interrupts disabled Reply-To: sashiko-reviews@lists.linux.dev To: "Usama Arif" , "Andrew Morton" , willy@infradead.org, jack@suse.cz, david@kernel.org, axboe@kernel.dk, "Christoph Hellwig" , hannes@cmpxchg.org, jlayton@kernel.org, brauner@kernel.org, tz2294@columbia.edu, ritesh.list@gmail.com, chentaotao@didiglobal.com, ziy@nvidia.com, bigeasy@linutronix.de, liam@infradead.org, vbabka@kernel.org, rppt@kernel.org, mhocko@suse.com, apopple@nvidia.com, byungchul@sk.com, gourry@gourry.net, joshua.hahnjy@gmail.com, matthew.brost@intel.com, ying.huang@linux.alibaba.com, clrkwllms@kernel.org, rostedt@goodmis.org, linux-mm@kvack.org, linux-rt-devel@lists.linux.dev, kas@kernel.org, riel@surriel.com, shakeel.butt@linux.dev, kernel-team@meta.com Cc: linux-kernel@vger.kernel.org In-Reply-To: <20261202142513.2951661-4-usama.arif@linux.dev> References: <20261202142513.2951661-1-usama.arif@linux.dev> <20261202142513.2951661-4-usama.arif@linux.dev> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 14:26:10 +0000 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] mm/filemap: inaccurate Fixes trailer in folio_end_dropbehind() fix -- commit fa3358ee2feeec78d1d81bdc2f73fcecfd3a6f0b Author: Usama Arif > mm/filemap: don't drop dropbehind folios with interrupts disabled > > Forced-threaded interrupt handlers pass the in_task() check in > folio_end_dropbehind() but run with interrupts disabled on !PREEMPT_RT, > and invalidating the folio turns them back on. ext4 RWF_DONTCACHE > overwrites hit this with threadirqs until commit 7d7c9c83c822 ("ext4: > complete dropbehind writeback in task context"), and folios marked > dropbehind after their writeback was submitted still can. > > Skip the drop when interrupts are disabled. The folio stays cached, as > it does when the completion runs in hardirq context. > > Fixes: ae21c0c0ac56 ("ext4: support uncached buffered I/O") > Cc: stable@vger.kernel.org > Signed-off-by: Usama Arif [Severity: Low] Should the Fixes tag reference fb7d3bc41493 ("mm/filemap: drop streaming/uncached pages when writeback completes") instead? ae21c0c0ac56 ("ext4: support uncached buffered I/O") only enabled FOP_DONTCACHE in ext4, whereas the in_task() check guarding folio_unmap_invalidate() in mm/filemap.c was introduced by fb7d3bc41493 ("mm/filemap: drop streaming/uncached pages when writeback completes"). --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261202142513.2951= 661-1-usama.arif@linux.dev?part=3D3