ehca: ehca_cq.c: fix unproper use of yield within spinlock context
PATCH 1/2 ehca: ehca_cq.c: fix unproper use of yield within spinlock context
Hello Roland!
This is a patch for ehca_cq.c that fixes unproper use of yield within spinlock context.
Thanks
Nam
Signed-off-by Hoang-Nam Nguyen <[email protected]>
---
ehca_cq.c | 5 ++++- 1 files changed, 4 insertions(+), 1 deletion(-)
drivers/infiniband/hw/ehca/ehca_cq.c +4 -1
@@ -344,8 +344,11 @@ int ehca_destroy_cq(struct ib_cq *cq)unsigned long flags;spin_lock_irqsave (&ehca_cq_idr_lock, flags); -while (my_cq->nr_callbacks) +while (my_cq->nr_callbacks) { +spin_unlock_irqrestore (&ehca_cq_idr_lock, flags);yield (); +spin_lock_irqsave (&ehca_cq_idr_lock, flags); + }idr_remove (&ehca_cq_idr, my_cq->token);spin_unlock_irqrestore (&ehca_cq_idr_lock, flags);
Very minor but
Quoted 1 line
Signed-off-by Hoang-Nam Nguyen <[email protected]>
should be
Signed-off-by Hoang-Nam Nguyen <[email protected]>
(':' after the "-by")
Anyway, queued for 2.6.20, thanks.
- R.