Re: [PATCH 1/3] rcu: Use static initializer for krc.lock

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

 



On 2020-04-16 14:43:48 [-0400], Joel Fernandes wrote:
> > Fair enough!  IIRC, get_page() uses non-raw spinlocks, so...
> 
> Oh, I see Paul made the same suggestion I did for raw spinlocks.
> 
> migrate_disable() is fine, but note that in the later code we will not be
> sleeping even during the get_page(), so I don't see a problem with raw
> spinlock... did I miss something?

The buddy allocator, which get_page() is using, is using spinlock_t
which is a sleeping lock. You can't have memory allocations within a
raw_spinlock_t section even with GFP_ATOMIC on PREEMPT_RT.

> thanks,
> 
>  - Joel

Sebastian



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux