ib/ehca: init irq tasklet before irq can happen
PATCH 1/1 ib/ehca: init irq tasklet before irq can happen
Initialize tasklet before interrupts are requested to prevent scheduling of uninitialized tasklet.
Signed-off-by Alexander Schmidt <[email protected]>
---
Hi Roland, please queue this fix for 2.6.36, thanks!
drivers/infiniband/hw/ehca/ehca_eq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/infiniband/hw/ehca/ehca_eq.c +4 -4
@@ -122,21 +122,21 @@ int ehca_create_eq(struct ehca_shca *shc/* register interrupt handlers and initialize work queues */ if (type ==EHCA_EQ ) { +tasklet_init (&eq->interrupt_task, ehca_tasklet_eq, (long )shca); + ret =ibmebus_request_irq (eq->ist, ehca_interrupt_eq,IRQF_DISABLED ,"ehca_eq" , (void *)shca);if (ret <0 )ehca_err (ib_dev,"Can't map interrupt handler." ); - -tasklet_init (&eq->interrupt_task, ehca_tasklet_eq, (long )shca); }else if (type ==EHCA_NEQ ) { +tasklet_init (&eq->interrupt_task, ehca_tasklet_neq, (long )shca); + ret =ibmebus_request_irq (eq->ist, ehca_interrupt_neq,IRQF_DISABLED ,"ehca_neq" , (void *)shca);if (ret <0 )ehca_err (ib_dev,"Can't map interrupt handler." ); - -tasklet_init (&eq->interrupt_task, ehca_tasklet_neq, (long )shca); } eq->is_initialized =1 ;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Roland Dreier
Appliedthanks, applied.
Signature · 6 lines
Roland Dreier <[email protected]> || For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/index.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html