aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/mlx4/fw.h
diff options
context:
space:
mode:
authorOr Gerlitz <ogerlitz@voltaire.com>2008-07-14 23:48:53 -0700
committerRoland Dreier <rolandd@cisco.com>2008-07-14 23:48:53 -0700
commitde910bd92137005b5e1ecaf2ce68053d7d7d5350 (patch)
tree8c901c29a83263b7a6ff9ce77a9ac2962dbbb32c /drivers/net/mlx4/fw.h
parent64c5e613b9dd34ef1281ed6d22478609667ae36a (diff)
RDMA/cma: Simplify locking needed for serialization of callbacks
The RDMA CM has some logic in place to make sure that callbacks on a given CM ID are delivered to the consumer in a serialized manner. Specifically it has code to protect against a device removal racing with a running callback function. This patch simplifies this logic by using a mutex per ID instead of a wait queue and atomic variable. This means that cma_disable_remove() now is more properly named to cma_disable_callback(), and cma_enable_remove() can now be removed because it just would become a trivial wrapper around mutex_unlock(). Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/net/mlx4/fw.h')
0 files changed, 0 insertions, 0 deletions