From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from neil.brown.name (neil.brown.name [103.29.64.221]) (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 B2BD5217654 for ; Wed, 18 Jun 2025 21:34:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.29.64.221 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750282450; cv=none; b=WtPrNPqic7EzbzWjFFOtbDLY7QCPpoWNH8053gAdMCLD+eDVxXPfn2XZmgN9x3XA20JPoYCChqFAMON545ZeuPLJehhvQIkg0+tAZ299F29DHunhgRlhZPmv0iVRLBpYbl0xt1f4MEfsebz57tux97HWsQHoZYHqpz8I7ktPfpY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750282450; c=relaxed/simple; bh=Aj95uwS2ADhQwDsZKD0KZ89jkW6ufk+qgC1peMnmo2o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F3Sn7ZCPGXtsMzzE2Zaik1yxRzRZXxnNFEF5Jmj35YX0gywfGD2Va1Aq+5LQSA7h7vMEEgea1XnE0jacfpULuvy4tHKknbdyi+JCLecrI/7HctB6UZIAL7w1MEi8FrICURLrt6VOe/wIAMFyKoJlbpYS3CNzfWiQEfKVWF1qPSg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brown.name; spf=pass smtp.mailfrom=neil.brown.name; arc=none smtp.client-ip=103.29.64.221 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=brown.name Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=neil.brown.name Received: from 196.186.233.220.static.exetel.com.au ([220.233.186.196] helo=home.neil.brown.name) by neil.brown.name with esmtp (Exim 4.95) (envelope-from ) id 1uS0Ps-000Yqo-Jq; Wed, 18 Jun 2025 21:33:56 +0000 From: NeilBrown To: Chuck Lever , Jeff Layton Cc: linux-nfs@vger.kernel.org, Olga Kornievskaia , Dai Ngo , Tom Talpey , Li Lingfeng Subject: [PATCH 0/3 RFC] improve some nfsd_mutex locking Date: Thu, 19 Jun 2025 07:31:50 +1000 Message-ID: <20250618213347.425503-1-neil@brown.name> X-Mailer: git-send-email 2.49.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 The first patch hopefully fixes a bug with locking: some write_foo functions aren't locked properly. The other two improve the locking code, particulary so that we don't need a global mutex to change per-netns data. NeilBrown [PATCH 1/3] nfsd: provide proper locking for all write_ function [PATCH 2/3] nfsd: use kref and new mutex for global config management [PATCH 3/3] nfsd: split nfsd_mutex into one mutex per net-namespace.