]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: don't use mutex_lock_interruptible()
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 31 Jul 2014 18:38:46 +0000 (20:38 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 8 Aug 2014 14:47:23 +0000 (16:47 +0200)
commit8f960f4e430e49dc7c6caa5a8d4aaa8ada5faf9c
tree2a92a55987f95c1cda659732c3792b72bb60e942
parent7f0d849d978cf79763c35a20c6e7671b4a4ad4ed
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>
net/bridge/netfilter/ebtables.c
net/netfilter/core.c
net/netfilter/ipvs/ip_vs_ctl.c
net/netfilter/nf_sockopt.c
net/netfilter/x_tables.c