diff options
author | Jeremy Kerr <jk@codeconstruct.com.au> | 2021-09-29 09:26:07 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-29 12:00:11 +0200 |
commit | 73c618456dc5cf2acb597256d633060cf75de8d6 (patch) | |
tree | a9efbe38933f94dae310553d398ccb2989acc554 /include/net/mctpdevice.h | |
parent | mctp: Allow local delivery to the null EID (diff) | |
download | linux-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