Re: [PATCH] printk: robustify printk

From: David Miller
Date: Fri Aug 08 2008 - 19:03:10 EST


From: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Date: Fri, 08 Aug 2008 20:14:28 +0200

> +struct klogd_wakeup_state {
> + struct rcu_head head;
> + int pending;
> +};
> +
> +DEFINE_PER_CPU(struct klogd_wakeup_state, kws);

Since there is not RCU_HEAD_INIT() made on these per-cpu objects, this code
is depending upon the fact that currently the RCU head is just initialized
to all zeros.
--
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/