• Julian Anastasov's avatar
    ipvs: convert app locks · 363c97d7
    Julian Anastasov authored
    We use locks like tcp_app_lock, udp_app_lock,
    sctp_app_lock to protect access to the protocol hash tables
    from readers in packet context while the application
    instances (inc) are [un]registered under global mutex.
    
    As the hash tables are mostly read when conns are
    created and bound to app, use RCU for readers and reclaim
    app instance after grace period.
    
    Simplify ip_vs_app_inc_get because we use usecnt
    only for statistics and rely on module refcounting.
    Signed-off-by: default avatarJulian Anastasov <ja@ssi.bg>
    Signed-off by: Hans Schillstrom <hans@schillstrom.com>
    Signed-off-by: default avatarSimon Horman <horms@verge.net.au>
    363c97d7
ip_vs.h 45.3 KB