All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Usama Arif" <usama.arif@linux.dev>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	willy@infradead.org, jack@suse.cz, david@kernel.org,
	axboe@kernel.dk, "Christoph Hellwig" <hch@lst.de>,
	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
Subject: Re: [PATCH 3/4] mm/filemap: don't drop dropbehind folios with interrupts disabled
Date: Thu, 03 Dec 2026 14:26:10 +0000	[thread overview]
Message-ID: <sashiko-outbox-247962@kernel.org> (raw)
In-Reply-To: <20261202142513.2951661-4-usama.arif@linux.dev>

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 <usama.arif@linux.dev>

> 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 <usama.arif@linux.dev>

[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").

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202142513.2951661-1-usama.arif@linux.dev?part=3


  parent reply	other threads:[~2026-12-03 14:26 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 14:24 [PATCH 0/4] mm: drop folios under writeback on POSIX_FADV_DONTNEED Usama Arif
2026-12-02 14:24 ` [PATCH 1/4] mm/migrate: preserve PG_dropbehind across folio migration Usama Arif
2026-12-02 14:41   ` Jan Kara
2026-12-02 14:56   ` Jeff Layton
2026-12-02 15:03   ` Zi Yan
2026-12-02 15:08   ` David Hildenbrand (Arm)
2026-12-02 15:18     ` Usama Arif
2026-12-02 14:24 ` [PATCH 2/4] mm/filemap: clear PG_dropbehind on lookup under the folio lock Usama Arif
2026-12-02 14:42   ` Jan Kara
2026-12-02 15:04   ` Jeff Layton
2026-12-02 16:20   ` Christoph Hellwig
2026-12-03 14:26   ` sashiko-bot
2026-12-02 14:24 ` [PATCH 3/4] mm/filemap: don't drop dropbehind folios with interrupts disabled Usama Arif
2026-12-02 14:51   ` Jan Kara
2026-12-02 15:04   ` Jeff Layton
2026-12-02 16:21   ` Christoph Hellwig
2026-12-02 17:50     ` Usama Arif
2026-12-03 14:26   ` sashiko-bot [this message]
2026-12-02 14:24 ` [PATCH 4/4] mm/fadvise: drop folios under writeback on POSIX_FADV_DONTNEED Usama Arif
2026-12-02 15:18   ` Jeff Layton
2026-12-02 16:26   ` Christoph Hellwig
2026-12-02 17:52     ` Usama Arif
2026-12-03  9:58   ` Jan Kara
2026-12-04 17:48     ` Usama Arif
2026-12-02 15:40 ` (subset) [PATCH 0/4] mm: " David Hildenbrand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-247962@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=apopple@nvidia.com \
    --cc=axboe@kernel.dk \
    --cc=bigeasy@linutronix.de \
    --cc=brauner@kernel.org \
    --cc=byungchul@sk.com \
    --cc=chentaotao@didiglobal.com \
    --cc=clrkwllms@kernel.org \
    --cc=david@kernel.org \
    --cc=gourry@gourry.net \
    --cc=hannes@cmpxchg.org \
    --cc=hch@lst.de \
    --cc=jack@suse.cz \
    --cc=jlayton@kernel.org \
    --cc=joshua.hahnjy@gmail.com \
    --cc=kas@kernel.org \
    --cc=kernel-team@meta.com \
    --cc=liam@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=linux-rt-devel@lists.linux.dev \
    --cc=matthew.brost@intel.com \
    --cc=mhocko@suse.com \
    --cc=riel@surriel.com \
    --cc=ritesh.list@gmail.com \
    --cc=rostedt@goodmis.org \
    --cc=rppt@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=shakeel.butt@linux.dev \
    --cc=tz2294@columbia.edu \
    --cc=usama.arif@linux.dev \
    --cc=vbabka@kernel.org \
    --cc=willy@infradead.org \
    --cc=ying.huang@linux.alibaba.com \
    --cc=ziy@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.