Re: [PATCH] enic: Fix another sleep-in-atomic bug

2017-05-31 Thread David Miller
From: Jia-Ju Bai Date: Wed, 31 May 2017 10:43:40 +0800 > The driver may sleep under a spin lock in some function call paths. > The 1st function call path is: > enic_tx_hang_reset (acquire the lock by spin_lock) > enic_stop > enic_synchronize_irqs > synchronize_irq --> may sleep > The

[PATCH] enic: Fix another sleep-in-atomic bug

2017-05-30 Thread Jia-Ju Bai
The driver may sleep under a spin lock in some function call paths. The 1st function call path is: enic_tx_hang_reset (acquire the lock by spin_lock) enic_stop enic_synchronize_irqs synchronize_irq --> may sleep The 2nd function call path is: enic_tx_hang_reset (acquire the lock by spin