[ofa-general] RE: [PATCH 2/4] rdma/cma: simplify locking needed for serialization of callbacks

Sean Hefty sean.hefty at intel.com
Wed Jun 18 09:12:56 PDT 2008


>The rdma-cm has some logic in place to make sure that callbacks on an ID are
>delivered to the consumer in serialized manner, specifically it has code to
>protect
>against a device removal racing with a callback now being delivered to the
>user.
>
>This patch simplifies this logic by using a mutex per ID instead of the wait
>queue
>and atomic variable, such that cma_disable_remove is now called
>cma_disable_callback
>and cma_enable_remove is now just mutex_unlock.
>
>Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>

Reviewed-by: Sean Hefty <sean.hefty.intel.com>





More information about the general mailing list