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=xO5aN6tvvG1pysQurHCNFyUeBSvvY+V7++eh1aik3OJkR2SdUyZnzbcZTi//FsCJxx/Y fRiL1W7ljR9ykle9R9VKgDMp2FheaTngEfLOuZT/I/gAwyTdBZucn2u/eGmx+Xje6YkO/ P+vXt3tR9NIvcvEsnfUjlTluPit3PkRhNh8WoaDeb0tpjhC1QffH+JCfIYa599YZ/sf9u Hjk8Qzj1wMepgbAFwhLfxwcRVI9sE4DFyM+GTVSfoBHzBG9rQGBYXbS9fdLA8DQWiXz0L RmOZi88L4FK+sAecvOCUS2rtfYbX8DZ8OS4AaXTCJ6fFXFvZ7+bnZV7yupKQfPZgWUQ== 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=2Bd5j4EYCELOfdoU5VYHuzvKkjcz+8OQlX7nmoN27wRabtwfc3Bc6gnOw8Hh3g7/SBC8 2IdNCXPpeVlKP6GZ98mzgrq0Pbgp4gozpQxlWZKZsv4Q5LeQMWY9/bgKklJuTpHSJ99MY oIzPb7sv0Mswp1DYc41SpiyBkz8yE8k6XYLPzpYAi449bncS+B4kCzPnMScOufxjy4OCc GXq87LrHpd1mhc7DrKTntxfBC1K95t+BxU2uUqzaY+qpb4XsuF80WtV2jqCBNZa6eHxVx a7tyI8ObyAXhE7k7onV2eFMDGBCeYGysf8+IaoRIBeAMTP1FgjD/PHG/DDnEGR3tOug== 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 D3BCB606A322; Wed, 2 Dec 2026 16:21:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D3BCB606A322 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-fsdevel@vger.kernel.org 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().