]> git.baikalelectronics.ru Git - kernel.git/commit
[NETLINK]: Fix unicast timeouts
authorPatrick McHardy <kaber@trash.net>
Wed, 7 Nov 2007 10:42:09 +0000 (02:42 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 7 Nov 2007 12:15:12 +0000 (04:15 -0800)
commit582454cb435582b9d05a96103e379aac4d5e2ed9
tree7122fccf27aa337438123071f3cb07999429de9e
parent0685877d5d55aab43b81e1ae8436b40e44cf9fac
[NETLINK]: Fix unicast timeouts

Commit ed6dcf4a in the history.git tree broke netlink_unicast timeouts
by moving the schedule_timeout() call to a new function that doesn't
propagate the remaining timeout back to the caller. This means on each
retry we start with the full timeout again.

ipc/mqueue.c seems to actually want to wait indefinitely so this
behaviour is retained.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h
ipc/mqueue.c
net/netlink/af_netlink.c