Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2439192rdb; Sun, 3 Dec 2023 17:41:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUtn/VB0TBlHvoCJIi7HMVe42aQ8wD9MOReZG2BpCinu3UJ8ugRrDGc7zihpQRr8Ckyfgn X-Received: by 2002:a05:6a20:6a1b:b0:18b:4e8c:471d with SMTP id p27-20020a056a206a1b00b0018b4e8c471dmr4571469pzk.59.1701654080347; Sun, 03 Dec 2023 17:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701654080; cv=none; d=google.com; s=arc-20160816; b=gVlQaP8bcOe6AnFlcJR7NS2oY35vPH5Ajzf5o0NCOts3CIZOAxChjOj3O+antbXXA2 Xi/NydzwdEX7bE+LdcCyKRfJZM2NGBTtYcT/xj4VGJlHPUkaHIfxWd0v1v7Lv7WF3/DY RBGwZqnUpI0YMU8dnyWm4rQfK04xmtKDFpAng31wrPLeNYOPdtFsbd2z2D6xIRNnJuHk TqOhFPWVkTUEa8OAdN3jUjeFIyZgkBt1BxcFioDulDr122F7xTKmibCpCISXH4oET0G+ ZMpZD025evSk7L/3eJIY4rNcgkZO7qRLPUIeUs4jtNOtZ/L2mH79Dp5aCYW35a3ilmH3 NCkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=J0kuBlqbuyFIRvAKQathyKzOzQns3OWEbdl8z6xK/1s=; fh=Ztty36qtkQLs7Q3c1H26mJJAy3kQBJDD0zo+We6C3rQ=; b=lw2wonjUFHQ21Tm2cuJ/sLSNJW99bGkGGRpF9Yn/F9SqBXpCO92/yzLN4g0XqQwYJJ S8Bd/oIC9eOGr4RaysuASH3/ybjwatelhC2slh6n2wBPjs7EVPifWS7C1w1m8qJjwjtX 0Cze0EWWaXvSrxXW5pZZQnZ69nu7DpiA8/izw3VGGXWO22ollDlhPvv6o1f4aGl4mMuf ROZI1de783g315h7pgHlsjDa1ExZC/ewawyu57rXlfPCMc27aod4DnOB/GqQhnQaxovL rVRcpOX8ryF4sTUMpV9RiiJbTxNRnqDXyXON/zHUpicwgJI0A34rCrSW9TtZ7H5QSoVG YenQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=qJEX7QFy; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs+bounces-265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z6-20020a63d006000000b0056f7f18bbfdsi6782097pgf.632.2023.12.03.17.41.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 17:41:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-265-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=@suse.de header.s=susede2_rsa header.b=qJEX7QFy; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-nfs+bounces-265-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-265-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (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 sv.mirrors.kernel.org (Postfix) with ESMTPS id CE7E7280A8E for ; Mon, 4 Dec 2023 01:41:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0614A5D; Mon, 4 Dec 2023 01:41:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="qJEX7QFy"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="b4MiNSEy" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CE51F2; Sun, 3 Dec 2023 17:41:13 -0800 (PST) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [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-out1.suse.de (Postfix) with ESMTPS id E4F4021F1C; Mon, 4 Dec 2023 01:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1701654071; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=J0kuBlqbuyFIRvAKQathyKzOzQns3OWEbdl8z6xK/1s=; b=qJEX7QFyhqYTjTJqQZ3IFXSdUiduhFUlZjDGAqqcpIMQPhJEWzJTvDchAHp7suJzRNgnxN 5j7X2L6nv/uNFZJ+x/W/eTnprfcdDWLL0BdLxoJ2fynnysx5AKxxmaos7mGS6lP+AzckLo SUcwJCa3U6b3CCUJur3+x2tcVTQceu4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1701654071; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=J0kuBlqbuyFIRvAKQathyKzOzQns3OWEbdl8z6xK/1s=; b=b4MiNSEyuKP7gDTBiOFwRzIcvpdkQRYBe7zNIi322buS9X5KJCRwUCTwMuwvgZMSeurvjq LgNbTHh4lC2Pm8BQ== 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 515681368D; Mon, 4 Dec 2023 01:41:04 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id 6whKNjAubWV6OAAAD6G6ig (envelope-from ); Mon, 04 Dec 2023 01:41:04 +0000 From: NeilBrown To: Al Viro , Christian Brauner , Jens Axboe , Oleg Nesterov , Chuck Lever , Jeff Layton , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: [PATCH 0/2 v2] Move all file-close work for nfsd into nfsd threads Date: Mon, 4 Dec 2023 12:36:40 +1100 Message-ID: <20231204014042.6754-1-neilb@suse.de> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out1.suse.de; none X-Spam-Score: 3.70 X-Spamd-Result: default: False [3.70 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-0.983]; RCPT_COUNT_TWELVE(0.00)[13]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[] Hi, here is a revised version of my previous patch titled: [PATCH/RFC] core/nfsd: allow kernel threads to use task_work. There are now two patches - one that changes core code to allow nfsd to handle its own __dput calls, and one to make various changes to nfsd. It would probably make sense for the first patch to land through the VFS tree, and the second to follow through the NFSD tree, maybe after the relevant rc1 ?? Details of the problem and explanation of the solution are in the individual patches. Thanks for all the review and suggestions. NeilBrown [PATCH 1/2] Allow a kthread to declare that it calls task_work_run() [PATCH 2/2] nfsd: Don't leave work of closing files to a work queue.