summaryrefslogtreecommitdiffstats
path: root/include/net/mctpdevice.h
diff options
context:
space:
mode:
authorJeremy Kerr <jk@codeconstruct.com.au>2021-09-29 09:26:07 +0200
committerDavid S. Miller <davem@davemloft.net>2021-09-29 12:00:11 +0200
commit73c618456dc5cf2acb597256d633060cf75de8d6 (patch)
treea9efbe38933f94dae310553d398ccb2989acc554 /include/net/mctpdevice.h
parentmctp: Allow local delivery to the null EID (diff)
downloadlinux-73c618456dc5cf2acb597256d633060cf75de8d6.tar.xz
linux-73c618456dc5cf2acb597256d633060cf75de8d6.zip
mctp: locking, lifetime and validity changes for sk_keys
We will want to invalidate sk_keys in a future change, which will require a boolean flag to mark invalidated items in the socket & net namespace lists. We'll also need to take a reference to keys, held over non-atomic contexts, so we need a refcount on keys also. This change adds a validity flag (currently always true) and refcount to struct mctp_sk_key. With a refcount on the keys, using RCU no longer makes much sense; we have exact indications on the lifetime of keys. So, we also change the RCU list traversal to a locked implementation. Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/mctpdevice.h')
0 files changed, 0 insertions, 0 deletions