]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: use different lock keys for INET6 and LOCAL
authorNeilBrown <neilb@suse.de>
Mon, 22 Nov 2021 22:40:35 +0000 (09:40 +1100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 22 Nov 2021 22:44:49 +0000 (17:44 -0500)
commit6f5178b5134f0ebf8cbbf1e1c906265155999d5f
tree8704e3d90d3c990dac2cd9dca20fbd0fafa9692f
parent000ad5ff9153bdf160f5310b8a6557d123bdd8f4
SUNRPC: use different lock keys for INET6 and LOCAL

xprtsock.c reclassifies sock locks based on the protocol.
However there are 3 protocols and only 2 classification keys.
The same key is used for both INET6 and LOCAL.

This causes lockdep complaints.  The complaints started since Commit
31b02d881879 ("SUNRPC: Replace use of socket sk_callback_lock with
sock_lock") which resulted in the sock locks beings used more.

So add another key, and renumber them slightly.

Fixes: 31b02d881879 ("SUNRPC: Replace use of socket sk_callback_lock with sock_lock")
Fixes: 3ecc3b09d031 ("SUNRPC: Support for RPC over AF_LOCAL transports")
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/xprtsock.c