[PATCH net 1/3] sctp: move rcu_read_lock from __sctp_lookup_association to sctp_lookup_association

2016-02-14 Thread Xin Long
__sctp_lookup_association() is only invoked by sctp_v4_err() and sctp_rcv(), both which run on the rx BH, and it has been protected by rcu_read_lock [see ip_local_deliver_finish() / ipv6_rcv()]. So we can move it to sctp_lookup_association, only let sctp_lookup_association use rcu_read_lock. Sign

Re: [PATCH net 1/3] sctp: move rcu_read_lock from __sctp_lookup_association to sctp_lookup_association

2016-02-17 Thread Neil Horman
On Mon, Feb 15, 2016 at 02:28:03PM +0800, Xin Long wrote: > __sctp_lookup_association() is only invoked by sctp_v4_err() and > sctp_rcv(), both which run on the rx BH, and it has been protected > by rcu_read_lock [see ip_local_deliver_finish() / ipv6_rcv()]. > > So we can move it to sctp_lookup_as

Re: [PATCH net 1/3] sctp: move rcu_read_lock from __sctp_lookup_association to sctp_lookup_association

2016-02-18 Thread Xin Long
On Thu, Feb 18, 2016 at 12:11 AM, Neil Horman wrote: > On Mon, Feb 15, 2016 at 02:28:03PM +0800, Xin Long wrote: >> __sctp_lookup_association() is only invoked by sctp_v4_err() and >> sctp_rcv(), both which run on the rx BH, and it has been protected >> by rcu_read_lock [see ip_local_deliver_finis