kdbus: link replies in fifo send order
authorKonrad Lipinski <konrad.l@samsung.com>
Fri, 9 Dec 2016 16:38:32 +0000 (17:38 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:53:42 +0000 (13:53 +0900)
As a consequence, timeouts are now issued in fifo order.

Change-Id: Iacf4e922a37038fa42f95a9d058eeacd0ebce3ec
Signed-off-by: Konrad Lipinski <konrad.l@samsung.com>
ipc/kdbus/reply.c

index e6791d8..07cb133 100644 (file)
@@ -117,7 +117,7 @@ void kdbus_reply_link(struct kdbus_reply *r)
        if (WARN_ON(!list_empty(&r->entry)))
                return;
 
-       list_add(&r->entry, &r->reply_dst->reply_list);
+       list_add_tail(&r->entry, &r->reply_dst->reply_list);
        kdbus_reply_ref(r);
 }