diff options
author | Thomas Graf <[email protected]> | 2012-12-06 09:25:05 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2012-12-07 14:15:04 -0500 |
commit | 45122ca26ced7fae41049326a3797a73f961db2e (patch) | |
tree | 347843ccf9b6a9eb9a4507e07b4c19faf0e59f70 /drivers/net/ethernet/intel/e100.c | |
parent | 0b0fe913bf6d551642eb8892ed90be7358906379 (diff) |
sctp: Add RCU protection to assoc->transport_addr_list
peer.transport_addr_list is currently only protected by sk_sock
which is inpractical to acquire for procfs dumping purposes.
This patch adds RCU protection allowing for the procfs readers to
enter RCU read-side critical sections.
Modification of the list continues to be serialized via sk_lock.
V2: Use list_del_rcu() in sctp_association_free() to be safe
Skip transports marked dead when dumping for procfs
Cc: Vlad Yasevich <[email protected]>
Cc: Neil Horman <[email protected]>
Signed-off-by: Thomas Graf <[email protected]>
Acked-by: Vlad Yasevich <[email protected]>
Acked-by: Neil Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/e100.c')
0 files changed, 0 insertions, 0 deletions