[TIPC]: Name publication events now delivered in chronological order
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 17 Oct 2006 04:56:04 +0000 (21:56 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 19 Oct 2006 02:55:19 +0000 (19:55 -0700)
This patch tivially re-orders the entries in TIPC's list of local
publications so that applications will receive publication events
in the order they were published.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Per Liden <per.liden@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/name_distr.c

index f0b063bcc2a9982c36b7b65bd51bcb3c7ec3a610..03bd659c43ca5901d7941508c8d4d2a03e247d68 100644 (file)
@@ -122,7 +122,7 @@ void tipc_named_publish(struct publication *publ)
        struct sk_buff *buf;
        struct distr_item *item;
 
-       list_add(&publ->local_list, &publ_root);
+       list_add_tail(&publ->local_list, &publ_root);
        publ_cnt++;
 
        buf = named_prepare_buf(PUBLICATION, ITEM_SIZE, 0);