• S
    RDMA/cxgb4: Use a mutex for QP and EP state transitions · 2f5b48c3
    Steve Wise 提交于
    Move the connection setup/teardown paths to the workq thread removing
    spin lock/irq disable requirements for these paths.  This allows calls
    down to the LLD for EP and QP state transition actions to be atomic
    with respect to processing CPL messages coming up from the HW.
    Namely, calls to rdma_init() and rdma_fini() can now be called with
    the mutex held avoiding many race conditions with the abort path.
    
    The QP spinlock is still used but only to manipulate the qp state.  This
    allows the fastpaths, poll, post_send, and pos_recv, to run in the
    irq context.
    Signed-off-by: NSteve Wise <swise@opengridcomputing.com>
    Signed-off-by: NRoland Dreier <rolandd@cisco.com>
    2f5b48c3
iw_cxgb4.h 19.8 KB