[openib-general] [PATCH] bugfix: remove unbalanced qp refcount

Michael S. Tsirkin mst at mellanox.co.il
Thu Feb 3 01:34:05 PST 2005


Hi!
It seems when the qp lock removal patch was applied, one chunk
was missing, so we get an unbalanced refcount decrement.

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: hw/mthca/mthca_cq.c
===================================================================
--- hw/mthca/mthca_cq.c	(revision 1725)
+++ hw/mthca/mthca_cq.c	(working copy)
@@ -412,8 +412,6 @@ static inline int mthca_poll_one(struct 
 				*freed = 0;
 			}
 			spin_unlock(&(*cur_qp)->lock);
-			if (atomic_dec_and_test(&(*cur_qp)->refcount))
-				wake_up(&(*cur_qp)->wait);
 		}
 
 		/*


-- 
MST - Michael S. Tsirkin



More information about the general mailing list