Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp112816imn; Wed, 27 Jul 2022 17:03:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tozOCqzywG7ifZhv3TGa29MIZU7NnAAjoap/lmkTkuOgBoP4gpI98PCnSmFq0s/B6Bgnho X-Received: by 2002:a65:6cc8:0:b0:3fe:2b89:cc00 with SMTP id g8-20020a656cc8000000b003fe2b89cc00mr21229352pgw.599.1658966586322; Wed, 27 Jul 2022 17:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658966586; cv=none; d=google.com; s=arc-20160816; b=1Bg1sWOnbTsW0r6pC0nOAYBGxw3dIUJi6T1fw0cW2UXAee7dVTo5hAuqt21r9ArBSq Vd4vw1IzyDavuWZOSUYkzBOnh+ImG7ONoa9EfOLxLbRxzhVOIumrjUh9Hrh17kiDBI0H DGRzwTgPf1EVTOZNOsvtLezhLWGZtx4g3O9xdFaOyDIt0BFsgu15dj2EC+zJcsLSCa7T 5YJ6sC0muB2z971HyA7hyMEzMcx28qlr0UtD8VTzrwXlKLN6vnTFTDFpEgEoSBF5hNHL ggrlmvHbYg4cXi3CfOfEtTYXFqiFuX1LE3+rQefneHnSNBlkyoaWjleJ0QQLutl/tyhK UmVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:references:in-reply-to:subject :cc:to:from:mime-version:content-transfer-encoding:dkim-signature :dkim-signature; bh=loyJhTq/FNEHNkgsLNEljJhAEtjX8v/yKoD0dhpNWTc=; b=05Iugz3+SBDnpTfJJ0j9ty5omFI2Wh9sSzmeg3wvZVaSzazAKzGwLxViBS9mA5KNKM EIodmsyYezw4uOEnYJKyBaeC+XxYDQoRpDhElm/VbTeM7tm5msyjdSwOD8RFAuZXj03F kevstrwdM1STYetG8IcM9ZpxgcQ41KluOgzXHrqgebBqddadiSv7qPubwkPlsWmbvJuH 7lRLcX9K1d+/5K7ArKgKnhYkG6/WILKRiCUBXDfc7pdHG312QKwnbFdgNt6FluZ6lppy ftwRSdVMFVuEHsZARXpYq0u6SmjpI4fUtSfErq5S+YNRW59a0uZ4NrNoiXQFvH7N30cd M3Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=EqEuYCqE; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=v+UzBsD9; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j1-20020a655581000000b00419e9dd6d49si24293251pgs.706.2022.07.27.17.02.35; Wed, 27 Jul 2022 17:03:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=EqEuYCqE; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=v+UzBsD9; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230395AbiG0Xst (ORCPT + 99 others); Wed, 27 Jul 2022 19:48:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbiG0Xss (ORCPT ); Wed, 27 Jul 2022 19:48:48 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1011B5A3DF for ; Wed, 27 Jul 2022 16:48:48 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id BF20220ECC; Wed, 27 Jul 2022 23:48:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1658965726; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=loyJhTq/FNEHNkgsLNEljJhAEtjX8v/yKoD0dhpNWTc=; b=EqEuYCqE8D5PquRvuJYh5nOWbTIY366aWorC1FlBZ024fEjXl4kREwDEayf8hu0KL+2kTz T53SQVzWIgabv1wJvsFigH5/abeYf7mRxrCrVgDkomA5zzfhdfZgolIvBX16IRB0NzvAgV zAgrprTUaiU6Hgi7sfcRfsnU87fjA1A= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1658965726; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=loyJhTq/FNEHNkgsLNEljJhAEtjX8v/yKoD0dhpNWTc=; b=v+UzBsD9S1jEFy740VZIi+WvqMerSWGQTNTG4Q3ZyHPxoWQrXRK4HdGrvRDFeM+8wkFlnz 87ifrmKdniQznACg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A243313A8E; Wed, 27 Jul 2022 23:48:45 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id c/1OF93O4WKEHQAAMHmgww (envelope-from ); Wed, 27 Jul 2022 23:48:45 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "NeilBrown" To: "Jeff Layton" Cc: "Chuck Lever III" , "Linux NFS Mailing List" Subject: Re: [PATCH 00/13] NFSD: clean up locking In-reply-to: <9f3fa578841067378e7f5a1c26ecde90e66c90e9.camel@kernel.org> References: <165881740958.21666.5904057696047278505.stgit@noble.brown>, <9f3fa578841067378e7f5a1c26ecde90e66c90e9.camel@kernel.org> Date: Thu, 28 Jul 2022 09:48:42 +1000 Message-id: <165896572203.4359.16866453628573745859@noble.neil.brown.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Thu, 28 Jul 2022, Jeff Layton wrote: > On Tue, 2022-07-26 at 16:45 +1000, NeilBrown wrote: > > This is the latest version of my series to clean up locking - > > particularly of directories - in preparation for proposed patches which > > change how directory locking works across the VFS. > >=20 > > I've included Jeff's patches to validate the dentry after getting a > > delegation. The second patch has been changed quite a bit to use > > nfsd_lookup_dentry(). I've left Jeff's From: line in place - let me know > > if you'd rather I change it. > >=20 >=20 > That's fine. >=20 > > Setting of ACLs and security labels has been moved from nfs4 code to > > nfsd_setattr() which allows quite a lot of code cleanup. > >=20 > > I think I've addressed all the concerns that have been raised, though > > maybe not in the way that was suggested. > >=20 > > I've tested this with cthon tests over v2, v3, v4.0, v4.1, and xfstests > > on v3 and v4.1, and pynfs 4.0, 4.1. No problems appeared. > >=20 > > Thanks, > > NeilBrown > >=20 > >=20 > > --- > >=20 > > Jeff Layton (2): > > NFSD: drop fh argument from alloc_init_deleg > > NFSD: verify the opened dentry after setting a delegation > >=20 > > NeilBrown (11): > > NFSD: introduce struct nfsd_attrs > > NFSD: set attributes when creating symlinks > > NFSD: add security label to struct nfsd_attrs > > NFSD: add posix ACLs to struct nfsd_attrs > > NFSD: change nfsd_create()/nfsd_symlink() to unlock directory befor= e returning. > > NFSD: always drop directory lock in nfsd_unlink() > > NFSD: only call fh_unlock() once in nfsd_link() > > NFSD: reduce locking in nfsd_lookup() > > NFSD: use explicit lock/unlock for directory ops > > NFSD: use (un)lock_inode instead of fh_(un)lock for file operations > > NFSD: discard fh_locked flag and fh_lock/fh_unlock > >=20 >=20 > It looks like the last 5 patches are missing from the posting > (everything after patch #8). >=20 Sorry. You should have them now. NeilBrown