[PATCH 2/3] [PATCH] Add a notifier list for VT console modes

Arnd Bergmann arnd at arndb.de
Sat Mar 3 18:18:42 EST 2007


On Friday 02 March 2007 22:36:43 Jordan Crouse wrote:
> +static inline int console_event_register(struct notifier_block *n)
> +{
> +       return raw_notifier_chain_register(&console_notifier_list, n);
> +}
> +
> +static inline int console_event_unregister(struct notifier_block *n)
> +{
> +       return raw_notifier_chain_unregister(&console_notifier_list, n);
> +}

Why are you using the raw_notifier_chain? Afaics, this ends you in
the exact race that the atomic_notifier_chain and blocking_notifier_chain
interfaces were introduced for.

	Arnd <><



More information about the Devel mailing list