Re: + rcu-split-listh-and-move-rcu-protected-lists-into-rculisth.patchadded to -mm tree

From: Josh Triplett
Date: Tue Feb 26 2008 - 06:40:27 EST


[I did not see this patch go by on any mailing list, so I replied to
the -mm mail and CCed LKML.]

akpm@xxxxxxxxxxxxxxxxxxxx wrote:
> The patch titled
> rcu: split list.h and move rcu-protected lists into rculist.h
> has been added to the -mm tree. Its filename is
> rcu-split-listh-and-move-rcu-protected-lists-into-rculisth.patch
[...]
> Subject: rcu: split list.h and move rcu-protected lists into rculist.h
> From: Franck Bui-Huu <fbuihuu@xxxxxxxxx>
>
> Move rcu-protected lists from list.h into a new header file rculist.h.
>
> This is done because list are a very used primitive structure all over the
> kernel and it's currently impossible to include other header files in this
> list.h without creating some circular dependencies.
>
> For example, list.h implements rcu-protected list and uses rcu_dereference()
> without including rcupdate.h. It actually compiles because users of
> rcu_dereference() are macros. Others RCU functions could be used too but
> aren't probably because of this.
>
> Therefore this patch creates rculist.h which includes rcupdates without to
> many changes/troubles.
>
> Signed-off-by: Franck Bui-Huu <fbuihuu@xxxxxxxxx>
> Acked-by: Paul E. McKenney <paulmck@xxxxxxxxxxxxxxxxxx>
> Cc: Josh Triplett <josh@xxxxxxxxxx>
> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>

This seems fine to me. Having the headers separate might make it more
difficult to keep the two in sync, but the list primitives don't
change, so that doesn't really matter much.

Acked-by: Josh Triplett <josh@xxxxxxxxxx>

- Josh Triplett

--
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/