From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=213.95.11.211 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796228509; b=sFrsDnWkwUigRJTvJ3AY8fuVbR7Tkl4nQG+aXMLlGVXQjp9txFYzgdubH3BYUMm67tIX ADY5o7Tc5Qk/n53rbHlbdXoKqR0GDUcbVp4LpFprlULID7lr/fumtdi0MkjdUJRDcUs0l f+g3tUgS/lfQkB0daSg/AyPMIuD0HgBy5kv6JOtiZTwvowdaohlo6H/UI26jE64TY6IaO DONPw4md+A6uQKTqIVehcvpTYh2E3K/va4UA5r4Gxunk1csITeOyoa2DPee9OBy59U0jp NM/buebtX57UoN/FbyOlrHEXuSbAjMu+7uhFiZC5bgjzHEyidFpTZ5ynTrg5MFB90Jg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796228509; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; bh=XvFxibEEH1QkjMpzu00nOYoSB3vAZz2NUiPBjgRFviM=; b=YvkT+H7UFxbpuF+OxVAUM8Cf6k1MEx/s3Yt0tM32kp1PcjHDuynTj2GFydrl2yUrVb+W HClr/tdg2Ng30LRs7l51IkqlsAxeJpPoOZZ30RjFHIqv6c4E4vzODEBXzNs/1uUkHrh09 DOAzy15fui30E3LKaYZ4bx3jERAc4Rg5ADFUirsTHSZlC69giVlaxv0L/67RKhz79dc67 V7MNa1oe8Jh7OhyfwenGBvKzitQMSNTfFrnfiu2HPPqGM+jKK6AElYfMxATYAEAlJCtUG HsSqgcvwNyO+3Uf+jO8SCuTMX3a/KwnZHpUNDNjOjHeBhhpNtLC+qNLwmmvwselXoFg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.remote-ip=213.95.11.211 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 80F23606A31A for ; Wed, 2 Dec 2026 16:21:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 80F23606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (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 9884068BFE; Wed, 2 Dec 2026 17:21:44 +0100 (CET) Date: Wed, 2 Dec 2026 17:21:44 +0100 From: Christoph Hellwig To: Usama Arif Cc: 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-fsdevel@vger.kernel.org, linux-rt-devel@lists.linux.dev, kas@kernel.org, riel@surriel.com, shakeel.butt@linux.dev, kernel-team@meta.com, stable@vger.kernel.org Subject: Re: [PATCH 3/4] mm/filemap: don't drop dropbehind folios with interrupts disabled Message-ID: <20261202162144.GB4653@lst.de> References: <20261202142513.2951661-1-usama.arif@linux.dev> <20261202142513.2951661-4-usama.arif@linux.dev> X-Mailing-List: linux-rt-devel@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261202142513.2951661-4-usama.arif@linux.dev> User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, Dec 02, 2026 at 06:24:38AM -0800, Usama Arif wrote: > - if (in_task() && folio_trylock(folio)) { > + if (in_task() && !irqs_disabled() && folio_trylock(folio)) { I wonder if this should use similar logic to bio_in_atomic().