Fix netlink timeouts.
commitd6eb5c86ed40fe57e411c4ee72b38d0a83642302
authorPatrick McHardy <kaber@trash.net>
Tue, 13 Nov 2007 11:03:00 +0000 (13 03:03 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Nov 2007 17:25:54 +0000 (21 09:25 -0800)
tree9ba9965b5a2fce1738d19533ed7d1057768c3ba0
parent2d23541246308b5d2867c6592ad2b09e9a1ae344
Fix netlink timeouts.

[NETLINK]: Fix unicast timeouts

[ Upstream commit: c3d8d1e30cace31fed6186a4b8c6b1401836d89c ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/netlink.h
ipc/mqueue.c
net/netlink/af_netlink.c