Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4510120rdh; Wed, 29 Nov 2023 03:38:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWUCLnHGYl+cP0R6Psryksp55x6ux8OXP5JBQYq+nvXdCHwvuKhWy9zwNP8YVwlVAm29f7 X-Received: by 2002:a9d:6203:0:b0:6ce:25a2:67cf with SMTP id g3-20020a9d6203000000b006ce25a267cfmr17192269otj.26.1701257919240; Wed, 29 Nov 2023 03:38:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701257919; cv=none; d=google.com; s=arc-20160816; b=1GJpoMNShHf6bjY+ueMlRbsPn37hE39163ZHTzDJWv6qTs2TVHHZ1kfS3GPlqpX1cP Jf5O00qxyjMO13+fRCITp6L511eL52CEk5FKjFIlg40qEz8Wl3vcvw3JQpF8/u7s4UnF l9kZzRXC3qwRVX21QBM3rObpvytAiadd1jiXqAXOHF0+x+KMKJQ1VBJAEGoCJsDZo58h b2uy1+EV45rvAYiPUCYuKDt1eEvfz3/jVMBuEbnwl99GLWS3I7bIHQKsGOJeJrdfWhbo BwfPlmoSpOYztdLCH6j1P6QX+OvE18PIC8K757Hpav5K3QfcF/1Vl1OgAzgrGrwU3h/F vCNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oEfgtZtOVrRRf6w3aikRO+9IsUsNB1KNVzl0WXVmCwY=; fh=9UfOHCq+Yuqmz8dTC2iHZ+YJW1Qtro1foI0jzqGDiEM=; b=wOz3N4xZVTQAHeBSYeF5sZF9jGtwZfYfcpR7OolJo7wni9tmlmaZ1NYc+NP31rQ9Pi mj4qBWUU7GezaBmHgnvYnqoF77+ISXsEALcTHUTmOh6M2iyennvLacHQrnjDzuFLIBpN AwHrQ6UC05Z8+AmKDUS5S/SLJdVB562N/H31mOtdmpnPCSXs7lGXf3eITPFeihEYsFa6 ChT24xUiCJf8Fol2xCCKjkIkIdnc2Rl8rxfxxRj+Eezcs3Sstwpl4FQgkyDTnl2ahOHS M6rAmlPGFwNdaPMO3lB5B9W5LWxuUQ6dvB77gJbTcW8wUObogM1EzBtmi4nJGOLUAF78 Nttg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uU4whDs6; spf=pass (google.com: domain of linux-nfs+bounces-160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s24-20020a63e818000000b00563da455862si13866712pgh.311.2023.11.29.03.38.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 03:38:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uU4whDs6; spf=pass (google.com: domain of linux-nfs+bounces-160-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-160-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id A9F2C282BC0 for ; Wed, 29 Nov 2023 11:38:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 295C41CFA4; Wed, 29 Nov 2023 11:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uU4whDs6" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 088EA12B72; Wed, 29 Nov 2023 11:38:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C3E3C433C8; Wed, 29 Nov 2023 11:38:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701257916; bh=/djex4o3dqe1i42wuz9PG0/vgKzpHPhwIhOIgQXXL1U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uU4whDs6Z1YKngjCmn5gwHACPMm29u1VKm7mUddhCUXuq3xjutAf+mwQ/z0cYHqWF 90EhlUizj3sy+E1Rq3Y8iPk5NYo9RQILX5fukZP6uGVqJjGImZB4ky8MmYNdunLRRq Nx6ghWr+yFeY24UfDxeln7sZz8WV2RrCRITCFjhyLHO3lPf4Pcjmj8JtmwTIZ/27EZ nVkcvIeafQJrWpbdTPhMPWp0WxHUYVJoPYs2khEESigfzVGG1E0VX1ZJMCtcAfQf97 zStLnBYhhxojdu5mIQuSjv41ED45qupXM8dXXCF8u7OMJW96GaKp1TFP+wHsMvmtwy 9mweFFhWj56tQ== Date: Wed, 29 Nov 2023 12:38:30 +0100 From: Christian Brauner To: Oleg Nesterov Cc: NeilBrown , Al Viro , Jens Axboe , Chuck Lever , Jeff Layton , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH/RFC] core/nfsd: allow kernel threads to use task_work. Message-ID: <20231129-fundort-kalligrafie-d4777374ad7a@brauner> References: <170112272125.7109.6245462722883333440@noble.neil.brown.name> <20231128-arsch-halbieren-b2a95645de53@brauner> <20231128135258.GB22743@redhat.com> <20231128-elastisch-freuden-f9de91041218@brauner> <20231128165945.GD22743@redhat.com> <20231128172959.GA27265@redhat.com> Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231128172959.GA27265@redhat.com> On Tue, Nov 28, 2023 at 06:29:59PM +0100, Oleg Nesterov wrote: > Forgot to menstion, > > On 11/28, Oleg Nesterov wrote: > > > > but please > > note irq_thread()->task_work_add(on_exit_work). > > and this means that Neil's and your more patch were wrong ;) Hm, that's all the more reason to not hang this off of PF_KTHREAD then. I mean, it's functional but we likely wouldn't have run into this confusion if this would be PF_FPUT_DELAYED, for example.