• Roland Dreier's avatar
    IB/mthca: Make all device methods truly reentrant · c93b6fba
    Roland Dreier authored
    Documentation/infiniband/core_locking.txt says:
    
      All of the methods in struct ib_device exported by a low-level
      driver must be fully reentrant.  The low-level driver is required to
      perform all synchronization necessary to maintain consistency, even
      if multiple function calls using the same object are run
      simultaneously.
    
    However, mthca's modify_qp, modify_srq and resize_cq methods are
    currently not reentrant.  Add a mutex to the QP, SRQ and CQ structures
    so that these calls can be properly serialized.
    Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    c93b6fba
mthca_cq.c 25.7 KB