• R
    IB/mthca: Make all device methods truly reentrant · c93b6fba
    Roland Dreier 提交于
    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: NRoland Dreier <rolandd@cisco.com>
    c93b6fba
mthca_provider.c 34.8 KB