Commit eaaaf10d authored by Michael S. Tsirkin's avatar Michael S. Tsirkin Committed by Linus Torvalds

[PATCH] InfiniBand: remove unbalance refcnt decrement

Fix unbalanced QP reference count decrement (introduced with QP lock
optimization patch)
Signed-off-by: default avatarMichael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: default avatarRoland Dreier <roland@topspin.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent d3fb326f
......@@ -422,8 +422,6 @@ static inline int mthca_poll_one(struct mthca_dev *dev,
*freed = 0;
}
spin_unlock(&(*cur_qp)->lock);
if (atomic_dec_and_test(&(*cur_qp)->refcount))
wake_up(&(*cur_qp)->wait);
}
spin_lock(&dev->qp_table.lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment