On 2019-04-11 13:36:38 [-0700], Song Liu wrote: > Hi, Hi, > On Wed, Apr 10, 2019 at 7:31 AM Sebastian Andrzej Siewior > <bigeasy@xxxxxxxxxxxxx> wrote: > > > > There is no difference between spinlock_t and raw_spinlock_t for !RT > > kernels. trie_update_elem() will allocate memory while holding ->lock > > which is not possible on RT kernels. > > I am new to RT kernel. For !RT kernel, it is OK to hold a lock and call > malloc with GFP_ATOMIC. Is this different for RT kernel? Yes, please see https://lore.kernel.org/bpf/20190412153819.6sh2b2cwddpgnepq@xxxxxxxxxxxxx/ > Thanks, > Song Sebastian