mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] sunrpc: cache infrastructure scalability improvements
@ 2026-02-20 12:26 Jeff Layton
  2026-02-20 12:26 ` [PATCH 1/3] sunrpc: convert queue_lock from global spinlock to per-cache_detail lock Jeff Layton
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Jeff Layton @ 2026-02-20 12:26 UTC (permalink / raw)
  To: Chuck Lever, NeilBrown, Olga Kornievskaia, Dai Ngo, Tom Talpey,
	Trond Myklebust, Anna Schumaker
  Cc: linux-nfs, linux-kernel, Jeff Layton

I've been working on trying to retrofit a netlink upcall into the sunrpc
cache infrastructure. While crawling over that code, I noticed that it
relies on both a global spinlock and waitqueue. The first two patches
convert those to be per-cache_detail instead.

The last patch splits up the cache_detail->queue into two lists: one to
hold cache_readers and one for cache_requests. This simplifies the code,
and the new sequence number that helps the readers track position may
help with implementing netlink upcalls.

Please consider these for v7.1.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
Jeff Layton (3):
      sunrpc: convert queue_lock from global spinlock to per-cache_detail lock
      sunrpc: convert queue_wait from global to per-cache_detail waitqueue
      sunrpc: split cache_detail queue into request and reader lists

 include/linux/sunrpc/cache.h |   7 +-
 net/sunrpc/cache.c           | 179 +++++++++++++++++++------------------------
 2 files changed, 85 insertions(+), 101 deletions(-)
---
base-commit: cca65706e7b428b96c951016fc372cc766b94b71
change-id: 20260220-sunrpc-cache-fe4cd44413d3

Best regards,
-- 
Jeff Layton <jlayton@kernel.org>


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

end of thread, other threads:[~2026-02-23 14:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-20 12:26 [PATCH 0/3] sunrpc: cache infrastructure scalability improvements Jeff Layton
2026-02-20 12:26 ` [PATCH 1/3] sunrpc: convert queue_lock from global spinlock to per-cache_detail lock Jeff Layton
2026-02-20 12:26 ` [PATCH 2/3] sunrpc: convert queue_wait from global to per-cache_detail waitqueue Jeff Layton
2026-02-20 12:26 ` [PATCH 3/3] sunrpc: split cache_detail queue into request and reader lists Jeff Layton
2026-02-21 22:41   ` NeilBrown
2026-02-23 14:07     ` Jeff Layton
2026-02-20 19:37 ` [PATCH 0/3] sunrpc: cache infrastructure scalability improvements Chuck Lever

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

Powered by JetHome