]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sunrpc: convert queue_lock from global spinlock to per-cache-detail lock
authorJeff Layton <jlayton@kernel.org>
Mon, 23 Feb 2026 17:09:59 +0000 (12:09 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 30 Mar 2026 01:25:09 +0000 (21:25 -0400)
commit17c1d66579ff27a7a8f2f407d1425272ff6fdd8c
tree051c62661464306976337a52e9e4da3098dda598
parent6b4f16a532e794e0df90baf15173e2166f863864
sunrpc: convert queue_lock from global spinlock to per-cache-detail lock

The global queue_lock serializes all upcall queue operations across
every cache_detail instance. Convert it to a per-cache-detail spinlock
so that different caches (e.g. auth.unix.ip vs nfsd.fh) no longer
contend with each other on queue operations.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/cache.h
net/sunrpc/cache.c