diff options
| author | Julian Anastasov <[email protected]> | 2013-03-21 11:58:07 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <[email protected]> | 2013-04-02 00:23:43 +0200 |
| commit | 363c97d7435ebba8a040f86e29bdec79ee182f0c (patch) | |
| tree | f472b8185419864ec9c1a95db2d88bbdb804fda7 /include/linux | |
| parent | 026ace060dfe29275d2188297a62fa37d6c1a02c (diff) | |
ipvs: convert app locks
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: Julian Anastasov <[email protected]>
Signed-off by: Hans Schillstrom <[email protected]>
Signed-off-by: Simon Horman <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions