percpu variables from softirq context
From: Mulyadi Santosa <hidden>
Date: 2011-12-07 18:48:44
From: Mulyadi Santosa <hidden>
Date: 2011-12-07 18:48:44
On Wed, Dec 7, 2011 at 06:08, Vimal [off-list ref] wrote:
Hi, I am trying to allocate a per-cpu variable from a softirq context, but the documentation for "alloc_percpu" says that the variable is allocated in GFP_KERNEL context, which can sleep. Is there a way around this?
perhaps, by design, you should first re-think, could you do that outside of softirq context? perhaps by deferring it into workqueue? -- regards, Mulyadi Santosa Freelance Linux trainer and consultant blog: the-hydra.blogspot.com training: mulyaditraining.blogspot.com