On Thu, Jan 21, 2021 at 01:33:42PM +0000, liweihang wrote: > We need to allocate memory while spin_lock is hold, how about using GFP_KERNEL or > GFP_NOWAIT? You should try hard not to do that. Convert he spinlock to a mutex, for instance. Jason
On Thu, Jan 21, 2021 at 01:33:42PM +0000, liweihang wrote: > We need to allocate memory while spin_lock is hold, how about using GFP_KERNEL or > GFP_NOWAIT? You should try hard not to do that. Convert he spinlock to a mutex, for instance. Jason