Re: percpu variables from softirq context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mulyadi

On 7 December 2011 10:48, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
> On Wed, Dec 7, 2011 at 06:08, Vimal <j.vimal@xxxxxxxxx> 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?

Yes, that's definitely a possibility; I was just wondering if there
was a reason behind not allowing it, or if I had missed something...

Thanks,
-- 
Vimal

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux