RE: [PATCH] [net][bna] Fix call trace when interrupts are disabled while sleeping function kzalloc is called
From: Rasesh Mody <hidden>
Date: 2011-06-28 17:28:09
From: Rasesh Mody <hidden>
Date: 2011-06-28 17:28:09
From: Shyam_Iyer@Dell.com [mailto:Shyam_Iyer@Dell.com] Sent: Tuesday, June 28, 2011 9:30 AM Here is try 2. I found that I had to initialize the flags variable outside the spin_lock_irqsave in the following way to fix the problem. The sleeping kzalloc function is in fact in the request_threaded_irq call which allocates the irq handler function and its flags arguments. Attached patch fixes the issue.
The attached patch may fix the issue in MSIX mode, however we'll continue to see the issue in INTX mode. Using a separate irq_flags may be a good idea.