Skip to content

Fix assorted races in the sunrpc cache.

NeilBrown linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5sunrpc/cache: remove races with queuing an upcall.net/sunrpc/cache.c+29 -110 replies
2/5sunrpc/cache: use cache_fresh_unlocked consistently and correctly.net/sunrpc/cache.c+7 -130 replies
3/5sunrpc/cache: ensure items removed from cache do not have pending upcalls.include/linux/sunrpc/cache.h net/sunrpc/cache.c+6 -10 replies
4/5net/sunrpc: xpt_auth_cache should be ignored when expired.include/linux/sunrpc/cache.h net/sunrpc/cache.c net/sunrpc/svcauth_unix.c+23 -350 replies
5/5sunrpc: Don't schedule an upcall on a replaced cache entry.net/sunrpc/cache.c+2 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Fix assorted races in the sunrpc cache.

There are a few races possible in the sunrpc cache which can result in messages being dropped or memory not being freed.

These patches have been tested extensively and appear to remove all dropped-message errors and memory leaks.

NeilBrown

---

NeilBrown (5):
sunrpc/cache: remove races with queuing an upcall. sunrpc/cache: use cache_fresh_unlocked consistently and correctly. sunrpc/cache: ensure items removed from cache do not have pending upcalls. net/sunrpc: xpt_auth_cache should be ignored when expired.
sunrpc: Don't schedule an upcall on a replaced cache entry.

 include/linux/sunrpc/cache.h |   49 ++++++++++++---------------
 net/sunrpc/cache.c           |   75 ++++++++++++++++++++++++------------------
 net/sunrpc/svcauth_unix.c    |    4 +-
 3 files changed, 67 insertions(+), 61 deletions(-)
Signature · 1 line
Signature