Re: [PATCH net-next] sctp: remove rcu_read_lock from sctp_bind_addr_state

2019-07-08 Thread David Miller
From: Xin Long Date: Tue, 9 Jul 2019 00:59:40 +0800 > sctp_bind_addr_state() is called either in packet rcv path or > by sctp_copy_local_addr_list(), which are under rcu_read_lock. > So there's no need to call it again in sctp_bind_addr_state(). > > Signed-off-by: Xin Long This is correct, pa

[PATCH net-next] sctp: remove rcu_read_lock from sctp_bind_addr_state

2019-07-08 Thread Xin Long
sctp_bind_addr_state() is called either in packet rcv path or by sctp_copy_local_addr_list(), which are under rcu_read_lock. So there's no need to call it again in sctp_bind_addr_state(). Signed-off-by: Xin Long --- net/sctp/bind_addr.c | 13 - 1 file changed, 4 insertions(+), 9 dele