• Jason Gunthorpe's avatar
    RDMA/rdma_cm: Remove process_req and timer sorting · e19c0d23
    Jason Gunthorpe authored
    
    
    Now that the work queue is used directly to launch and track the work
    there is no need for the second processing function to do 'all list
    entries'. Just schedule all entries onto the main work queue directly.
    
    We can also drop all of the useless list sorting now, as the workqueue
    sorts by expiration time automatically.
    
    This change requires switching lock to a spinlock as netdev notifiers
    are called in an atomic context, this is now easy since the lock does
    not need to be held across the lookup, that is already single
    threaded due to the work queue.
    
    Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
    Reviewed-by: default avatarParav Pandit <parav@mellanox.com>
    Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
    e19c0d23