Skip to content

SUNRPC: Various RCU fixes

Anna Schumaker linux-nfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v14 patches 5 repliesSuperseded

Changes in v2 from the cover letter

* 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.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4SUNRPC: Clean up unused variable in rpc_xprt_probe_trunked()net/sunrpc/clnt.c+0 -30 replies
2/4SUNRPC: Remove unused function rpc_clnt_xprt_switch_put()include/linux/sunrpc/clnt.h net/sunrpc/clnt.c+0 -90 replies
3/4SUNRPC: Create a helper function for accessing the rpc_clnt's xprt_switchnet/sunrpc/clnt.c+21 -130 replies
4/4SUNRPC: Fix a suspicious RCU usage warningnet/sunrpc/xprtmultipath.c+15 -21 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJeff Layton
1/4R-b
2/4R-b
3/4R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/4] SUNRPC: Various RCU fixes

From: Anna Schumaker <[email protected]>

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(-)
Signature · 1 line
2.43.0