[ofa-general] RE: [RFC PATCH 3/5] rdma/cma: simplify locking needed for serialization of callbacks

Sean Hefty sean.hefty at intel.com
Tue May 27 08:54:23 PDT 2008


>@@ -359,7 +358,7 @@ static int cma_disable_remove(struct rdm
>
> 	spin_lock_irqsave(&id_priv->lock, flags);
> 	if (id_priv->state == state) {
>-		atomic_inc(&id_priv->dev_remove);
>+		mutex_lock(&id_priv->handler_mutex);

This just tried to acquire a mutex while holding a spinlock.

- Sean





More information about the general mailing list