Linux NFS development
 help / color / mirror / Atom feed
* [PATCH v2 0/4] SUNRPC: Various RCU fixes
@ 2023-12-04 20:25 Anna Schumaker
  2023-12-04 20:25 ` [PATCH v2 1/4] SUNRPC: Clean up unused variable in rpc_xprt_probe_trunked() Anna Schumaker
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Anna Schumaker @ 2023-12-04 20:25 UTC (permalink / raw)
  To: linux-nfs, trond.myklebust; +Cc: anna

From: Anna Schumaker <Anna.Schumaker@Netapp.com>

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.

Changes in v2:
* Have rpc_xprt_switch_has_addr() unconditionally take the
  rcu_read_lock(), since we don't need to worry about this deadlocking
  if the lock is already held by the caller.

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 -
 net/sunrpc/clnt.c           | 45 +++++++++++++++++--------------------
 net/sunrpc/xprtmultipath.c  | 17 ++++++++++++--
 3 files changed, 36 insertions(+), 27 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-05 10:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-04 20:25 [PATCH v2 0/4] SUNRPC: Various RCU fixes Anna Schumaker
2023-12-04 20:25 ` [PATCH v2 1/4] SUNRPC: Clean up unused variable in rpc_xprt_probe_trunked() Anna Schumaker
2023-12-04 20:25 ` [PATCH v2 2/4] SUNRPC: Remove unused function rpc_clnt_xprt_switch_put() Anna Schumaker
2023-12-04 20:25 ` [PATCH v2 3/4] SUNRPC: Create a helper function for accessing the rpc_clnt's xprt_switch Anna Schumaker
2023-12-04 20:25 ` [PATCH v2 4/4] SUNRPC: Fix a suspicious RCU usage warning Anna Schumaker
2023-12-05 10:51   ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox