Re: [PATCH net] sctp: disable BH in sctp_for_each_endpoint

2017-06-10 Thread David Miller
From: Xin Long Date: Sat, 10 Jun 2017 14:48:14 +0800 > Now sctp holds read_lock when foreach sctp_ep_hashtable without disabling > BH. If CPU schedules to another thread A at this moment, the thread A may > be trying to hold the write_lock with disabling BH. > > As BH is disabled and CPU cannot

Re: [PATCH net] sctp: disable BH in sctp_for_each_endpoint

2017-06-10 Thread Marcelo Ricardo Leitner
On Sat, Jun 10, 2017 at 02:48:14PM +0800, Xin Long wrote: > Now sctp holds read_lock when foreach sctp_ep_hashtable without disabling > BH. If CPU schedules to another thread A at this moment, the thread A may > be trying to hold the write_lock with disabling BH. > > As BH is disabled and CPU cann

[PATCH net] sctp: disable BH in sctp_for_each_endpoint

2017-06-09 Thread Xin Long
Now sctp holds read_lock when foreach sctp_ep_hashtable without disabling BH. If CPU schedules to another thread A at this moment, the thread A may be trying to hold the write_lock with disabling BH. As BH is disabled and CPU cannot schedule back to the thread holding the read_lock, while the thre