-
- Downloads
IB: refcount race fixes
Fix race condition during destruction calls to avoid possibility of accessing object after it has been freed. Instead of waking up a wait queue directly, which is susceptible to a race where the object is freed between the reference count going to 0 and the wake_up(), use a completion to wait in the function doing the freeing. Signed-off-by:Sean Hefty <sean.hefty@intel.com> Signed-off-by:
Roland Dreier <rolandd@cisco.com>
Showing
- drivers/infiniband/core/cm.c 7 additions, 5 deletionsdrivers/infiniband/core/cm.c
- drivers/infiniband/core/mad.c 25 additions, 22 deletionsdrivers/infiniband/core/mad.c
- drivers/infiniband/core/mad_priv.h 3 additions, 2 deletionsdrivers/infiniband/core/mad_priv.h
- drivers/infiniband/core/mad_rmpp.c 10 additions, 10 deletionsdrivers/infiniband/core/mad_rmpp.c
- drivers/infiniband/core/ucm.c 7 additions, 5 deletionsdrivers/infiniband/core/ucm.c
Loading
Please register or sign in to comment