From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4C07C433E0 for ; Tue, 16 Feb 2021 09:30:50 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F174A64DE0 for ; Tue, 16 Feb 2021 09:30:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F174A64DE0 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 290A18D0167; Tue, 16 Feb 2021 04:30:49 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 23F508D0140; Tue, 16 Feb 2021 04:30:49 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 12D498D0167; Tue, 16 Feb 2021 04:30:49 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0080.hostedemail.com [216.40.44.80]) by kanga.kvack.org (Postfix) with ESMTP id F1B898D0140 for ; Tue, 16 Feb 2021 04:30:48 -0500 (EST) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id AD7DB1813BCDC for ; Tue, 16 Feb 2021 09:30:48 +0000 (UTC) X-FDA: 77823611376.26.dime33_5d1325327642 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin26.hostedemail.com (Postfix) with ESMTP id 8F78E181A8B13 for ; Tue, 16 Feb 2021 09:30:48 +0000 (UTC) X-HE-Tag: dime33_5d1325327642 X-Filterd-Recvd-Size: 2162 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by imf45.hostedemail.com (Postfix) with ESMTP for ; Tue, 16 Feb 2021 09:30:47 +0000 (UTC) Received: by verein.lst.de (Postfix, from userid 2407) id B13C56736F; Tue, 16 Feb 2021 10:30:44 +0100 (CET) Date: Tue, 16 Feb 2021 10:30:44 +0100 From: Christoph Hellwig To: David Howells Cc: Christoph Hellwig , Trond Myklebust , Marc Dionne , Anna Schumaker , Steve French , Dominique Martinet , linux-cifs@vger.kernel.org, ceph-devel@vger.kernel.org, Jeff Layton , Matthew Wilcox , linux-cachefs@redhat.com, Alexander Viro , linux-mm@kvack.org, linux-afs@lists.infradead.org, v9fs-developer@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, Jeff Layton , David Wysochanski , linux-kernel@vger.kernel.org, Sebastian Andrzej Siewior Subject: Re: [PATCH 34/33] netfs: Use in_interrupt() not in_softirq() Message-ID: <20210216093044.GA24615@lst.de> References: <20210216084230.GA23669@lst.de> <161340385320.1303470.2392622971006879777.stgit@warthog.procyon.org.uk> <1376938.1613429183@warthog.procyon.org.uk> <1419965.1613467771@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1419965.1613467771@warthog.procyon.org.uk> User-Agent: Mutt/1.5.17 (2007-11-01) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Feb 16, 2021 at 09:29:31AM +0000, David Howells wrote: > Is there a better way to do it? The intent is to process the assessment phase > in the calling thread's context if possible rather than bumping over to a > worker thread. For synchronous I/O, for example, that's done in the caller's > thread. Maybe that's the answer - if it's known to be asynchronous, I have to > punt, but otherwise don't have to. Yes, i think you want an explicit flag instead.