-
- Downloads
netfilter: don't use mutex_lock_interruptible()
Eric Dumazet reports that getsockopt() or setsockopt() sometimes returns -EINTR instead of -ENOPROTOOPT, causing headaches to application developers. This patch replaces all the mutex_lock_interruptible() by mutex_lock() in the netfilter tree, as there is no reason we should sleep for a long time there. Reported-by:Eric Dumazet <edumazet@google.com> Suggested-by:
Patrick McHardy <kaber@trash.net> Signed-off-by:
Pablo Neira Ayuso <pablo@netfilter.org> Acked-by:
Julian Anastasov <ja@ssi.bg>
Showing
- net/bridge/netfilter/ebtables.c 2 additions, 8 deletionsnet/bridge/netfilter/ebtables.c
- net/netfilter/core.c 2 additions, 9 deletionsnet/netfilter/core.c
- net/netfilter/ipvs/ip_vs_ctl.c 4 additions, 15 deletionsnet/netfilter/ipvs/ip_vs_ctl.c
- net/netfilter/nf_sockopt.c 2 additions, 6 deletionsnet/netfilter/nf_sockopt.c
- net/netfilter/x_tables.c 12 additions, 35 deletionsnet/netfilter/x_tables.c
Loading
Please register or sign in to comment