aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2007-03-23 02:30:55 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:27:33 -0400
commitc702e8047fe74648f7852a9c1de781b0d5a98402 (patch)
tree24bd031d79f3d1159bc08704a51c84de01d712b0 /net/netlink/af_netlink.c
parentead592ba246dfcc643b3f0f0c8c03f7bc898a59f (diff)
[NETLINK]: Directly return -EINTR from netlink_dump_start()
Now that all users of netlink_dump_start() use netlink_run_queue() to process the receive queue, it is possible to return -EINTR from netlink_dump_start() directly, therefore simplying the callers. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r--net/netlink/af_netlink.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 1823b7c63156..2cbf1682f63d 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -1426,7 +1426,12 @@ int netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
1426 1426
1427 netlink_dump(sk); 1427 netlink_dump(sk);
1428 sock_put(sk); 1428 sock_put(sk);
1429 return 0; 1429
1430 /* We successfully started a dump, by returning -EINTR we
1431 * signal the queue mangement to interrupt processing of
1432 * any netlink messages so userspace gets a chance to read
1433 * the results. */
1434 return -EINTR;
1430} 1435}
1431 1436
1432void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err) 1437void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err)