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

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

[PATCH] enic: Fix a 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_reset (acquire the lock by spin_lock) enic_stop enic_synchronize_irqs synchronize_irq --> may sleep The 2nd function call path is: enic_reset (acquire the lock by spin_lock) enic_de