Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1332843rdb; Fri, 1 Dec 2023 13:15:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFY0pgE0g3W+tOkEWWPZ0ZmEkctQ9FeVMCng2gdK0KzuEdTtb1M6muCqMmkmDXbOUmAnZj1 X-Received: by 2002:a05:6a00:18a5:b0:6ce:1160:206a with SMTP id x37-20020a056a0018a500b006ce1160206amr824813pfh.25.1701465353320; Fri, 01 Dec 2023 13:15:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701465353; cv=none; d=google.com; s=arc-20160816; b=B2/1ao2M2lIWsgauV5ZYye3OmGmLLiFIYc8L+HHhHoz12onb4NkOBEpKRnKffrXPVC OsQ8w61A+z8wOpk9PepUXtD4teGeE83zkfbnXQ60haFKUOy/l+iQALGmQBJmsGGxXMSk 8u4ixj1JycgZtOswGGuzZSMXgK9rixH7Q+klBKNHpU7LEceYQd1GzIWZqy4epy+CeaS8 B98D94FVs0tigyyJxDROR7u5e4sF0Z2Hm7D+Gpo9Txn70z3RBA0Sgyjml+RufSC+xB9Y UAqJw8urqxYQZLVWQOCeRrPQznAviX4ufHOYRl9hLA621uEA+OZDxdt4QlSRUe1iOrOc 3Jug== 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; bh=T1snwgjfGjEzcW2GY3WxpA6CRmMerdBaBK2V9utBLAU=; fh=zrf3k9maC4LGn/MmcHhRkqh5cHnarsSKx/fWXfAmYNI=; b=g/WZEpkOCUuZoQyGrB384AO7II1NWzd04ASK0ldfSDUV1VkssGHXH+3Z9zhv2VEsQi jalc2/G61WCPr3TfOUf2TityXjn9FwcmKaSXR5My0bMAd69KneVGGzoJJQCwUst3HJmw vtyAvSFBZPE7zRz3H+kfziWnyQXa/xzIRQb60WxTFH4nySwvAqBCg6QXdhaapLBHKtAx 2Bj8K5Maa73Gdy/Uz350M8dZX5JDu3wcQ+ZTeAv9LfDIPXHLH169CYn5gjdQQknbA519 W1bw1O7o6JFnJkRWYEr0aVK7GjLTkf6YAyMmsa9AXtfslbfOnm1mXuXzlkHh0zZNV5AJ POXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KggkrY5B; spf=pass (google.com: domain of linux-nfs+bounces-247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-247-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 a21-20020a656415000000b005be007363a9si4090776pgv.730.2023.12.01.13.15.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 13:15:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-247-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=KggkrY5B; spf=pass (google.com: domain of linux-nfs+bounces-247-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-247-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 CF3982814E2 for ; Fri, 1 Dec 2023 21:15:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE0DC584FA; Fri, 1 Dec 2023 21:15:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KggkrY5B" 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 A2F2826ACF for ; Fri, 1 Dec 2023 21:15:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE737C433C9; Fri, 1 Dec 2023 21:15:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701465351; bh=O0N/1Fp9WeNI30M76VGot24755Op55Dq6Ku1TaPg3ps=; h=From:To:Cc:Subject:Date:From; b=KggkrY5BfL+DqstYcd7bo3n9MTTK+eKQzMjjjT0skcyoLSaDevrQjEws6vyCSs339 JY5xpc1wEFaYs9biMnD41HtrNdGiJzOseAKzn1ril6pUDQc/QKnJuWBcDkhGjgWZyl s2jGxreSNDJaUGremxyJF0JVljFnWvqORFzLqmDgbyQysQtX/lblEt6FK5Z2QNtW69 sIr+GbQxf1h6Xm2omKT98Knn+yZ8aI73F7VW/IITfNHeYoWtNg9nQ6w5lWJM5pALva LefSdj3E24zCv+6c5/6bH/cthbtupn4lYlUVpqCA9nriAIS9GpN8m6WJmpcA8vcXQA HiS7MXepQ+LDg== From: Anna Schumaker To: linux-nfs@vger.kernel.org, trond.myklebust@hammerspace.com Cc: anna@kernel.org Subject: [PATCH 0/4] SUNRPC: Various RCU fixes Date: Fri, 1 Dec 2023 16:15:45 -0500 Message-ID: <20231201211549.126941-1-anna@kernel.org> 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 From: Anna Schumaker These are various fixes that I found after turning on CONFIG_LOCKDEP, CONFIG_PROVE_RCU, and CONFIG_DEBUG_ATOMIC_SLEEP. I didn't hit any issues when testing against a Linux server, but running against Netapp with pNFS had several different lockdep & rcu related spews show up in my dmesg (and that's just from running cthon, not even xfstests). These patches fix all the issues that I found, and have a couple extra cleanups that I noticed along the way. Thoughts? Anna Anna Schumaker (4): SUNRPC: Clean up unused variable in rpc_xprt_probe_trunked() SUNRPC: Remove unused function rpc_clnt_xprt_switch_put() SUNRPC: Create a helper function for accessing the rpc_clnt's xprt_switch SUNRPC: Fix a suspicious RCU usage warning include/linux/sunrpc/clnt.h | 1 - include/linux/sunrpc/xprtmultipath.h | 2 ++ net/sunrpc/clnt.c | 47 +++++++++++++--------------- net/sunrpc/xprtmultipath.c | 14 ++++++++- 4 files changed, 37 insertions(+), 27 deletions(-) -- 2.43.0