Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4218525rdh; Tue, 28 Nov 2023 15:41:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJhcfJ3Ue6EWbSkD9F9fdbbOQGc9BNtSeM1/aUk4cHO98QxE5Kd9iSoYR9g95gtIXXosoZ X-Received: by 2002:a05:6a20:1608:b0:18c:da:ba0b with SMTP id l8-20020a056a20160800b0018c00daba0bmr20074499pzj.44.1701214869364; Tue, 28 Nov 2023 15:41:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701214869; cv=none; d=google.com; s=arc-20160816; b=jUQht+zhguuaaD68P8ZVTCpsYEuL+bW3/Qe+5X9OnQwdTtYiD4HjvVRHj6RtnpuUuQ /1josPFlk0AY4TBWQzjeSYPYe9v3ipzI/veAWeFKfibMyBiBHxm99BW77QPfF/bThmC0 dwYS3RObZs6BzRJiZ9C3wZd5DP/zz5VCePgRjYbyjj9aQNfLeNHL6f7HALIR/fSTsvxl jSPmJgs3NkU1Erp2658C+BarROhkrfSs4sS/DhWFrieHR90i+DvYwCp7mZIzTI1YKUAp JHHYpq1nv2cB6hbq/w/3wH/dcj1shzkjvd+QE1kaeqLu3xhmSLfkelEUv8J2Fjlk0KXD WACw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:references:in-reply-to:subject:cc:to:from :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding; bh=/1QAGYuYIaZG1CTnBe5Kwd9kJQ974jfBW4+gpZcA6r0=; fh=Zs9Nh8T0N6w2bnewBv4xoZ7bdSvaoW0i0W8o4EnSxEM=; b=uMArMet/8XhTMdjgrOWuA1c690nydyAw7uF0Ove5GgQx0BmENT6Rhk8If7DkToyHZv VoxgXQiLAmSWbLhVh7IO52RJ3qQv9MqyqKQ4qocrkB0D+KvwXLvyBn6YoC/NU3XZK5NI 2ZUiGHpEGgJvDpdTVulcnkixf9B7b/EO6x6czZmWl1EKoY/1fOdpTL31Z39jrI4pieVC GoLjY8s9UFsoPgV3+OIO+xXsr1dTWPILmiu+9BzrglZGpQIXsMUe3JDCmqB1w0++O0A4 reBR0fp2XLx+raUJGfZmDbqJ5Ugk/pF36+QkNFfo4AYsN8nuw/Rh6Le/KFOM+yjvv4WM fP0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs+bounces-157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id c13-20020aa7952d000000b006c4d5ca7fe7si12654137pfp.366.2023.11.28.15.41.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 15:41:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs+bounces-157-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-157-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D00D2B21359 for ; Tue, 28 Nov 2023 23:41:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 278A157333; Tue, 28 Nov 2023 23:41:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=none X-Original-To: linux-nfs@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9227FDA; Tue, 28 Nov 2023 15:41:00 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 36BD21F8A4; Tue, 28 Nov 2023 23:40:59 +0000 (UTC) Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id ACE9213763; Tue, 28 Nov 2023 23:40:54 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id ShoyF4Z6ZmVFXAAAD6G6ig (envelope-from ); Tue, 28 Nov 2023 23:40:54 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "NeilBrown" To: "Oleg Nesterov" Cc: "Christian Brauner" , "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. In-reply-to: <20231128172959.GA27265@redhat.com> 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> Date: Wed, 29 Nov 2023 10:40:51 +1100 Message-id: <170121485154.7109.13588704687316181624@noble.neil.brown.name> X-Spam-Level: X-Rspamd-Server: rspamd1 Authentication-Results: smtp-out2.suse.de; none X-Rspamd-Queue-Id: 36BD21F8A4 X-Spam-Score: -4.00 X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] On Wed, 29 Nov 2023, 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 ;) Yes it does - thanks for that! I guess we need a setting that is focused particularly on fput(). Probably a PF flag is best for that. Thanks, NeilBrown > > Oleg. > >