Re: [PATCH v6 1/3] lib/plist: Provide plist_add_head() for nodes with the same prio
From: Steven Rostedt
Date: Mon Apr 20 2015 - 10:42:25 EST
On Mon, 20 Apr 2015 16:22:46 +0800
Xunlei Pang <xlpang@xxxxxxx> wrote:
> From: Xunlei Pang <pang.xunlei@xxxxxxxxxx>
>
> If there're multiple nodes with the same prio as @node, currently
> plist_add() will add @node behind all of them. Now we need to add
> @node before all of these nodes for SMP RT scheduler.
>
> This patch adds a common __plist_add() for adding @node before or
> after existing nodes with the same prio, then adds plist_add_head()
> and plist_add_tail() inline wrapper functions for convenient uses.
>
> Finally, define plist_add() as plist_add_tail() which has the same
> behaviour as before.
>
> Reviewed-by: Dan Streetman <ddstreet@xxxxxxxx>
Reviewed-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
-- Steve
> Signed-off-by: Xunlei Pang <pang.xunlei@xxxxxxxxxx>
> ---
> v5->v6:
> Add more detailed annotations.
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/