Re: [PATCHv2 net] sctp: not disable bh in the whole sctp_get_port_local()

2020-08-24 Thread David Miller
From: Xin Long Date: Fri, 21 Aug 2020 14:59:38 +0800 > With disabling bh in the whole sctp_get_port_local(), when > snum == 0 and too many ports have been used, the do-while > loop will take the cpu for a long time and cause cpu stuck: > > [ ] watchdog: BUG: soft lockup - CPU#11 stuck for 22s!

Re: [PATCHv2 net] sctp: not disable bh in the whole sctp_get_port_local()

2020-08-21 Thread Marcelo Ricardo Leitner
On Fri, Aug 21, 2020 at 02:59:38PM +0800, Xin Long wrote: > With disabling bh in the whole sctp_get_port_local(), when > snum == 0 and too many ports have been used, the do-while > loop will take the cpu for a long time and cause cpu stuck: > > [ ] watchdog: BUG: soft lockup - CPU#11 stuck for 2

[PATCHv2 net] sctp: not disable bh in the whole sctp_get_port_local()

2020-08-20 Thread Xin Long
With disabling bh in the whole sctp_get_port_local(), when snum == 0 and too many ports have been used, the do-while loop will take the cpu for a long time and cause cpu stuck: [ ] watchdog: BUG: soft lockup - CPU#11 stuck for 22s! [ ] RIP: 0010:native_queued_spin_lock_slowpath+0x4de/0x940 [