lkml.org 
[lkml]   [2020]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] rcu/tree: Drop the lock before entering to page allocator
On 2020-07-15 21:02:43 [+0200], Uladzislau Rezki wrote:
>
> <snip>
> spin_lock();
> __get_free_page(GFP_NOWAIT | __GFP_NOWARN);
> spin_unlock();
> <snip>
>
> Also, please note we do it for regular kernel.

ach right okay then.

> >
> > What happened to the part where I asked for a spinlock_t?
> >
> What do you mean?

Please drop that raw_spinlock_t for the kfree_rcu() based locking and
use just a plain spinlock_t for the locking. Then you can keep the same
code flow for RT and !RT without any special cases and everything.

> --
> Vlad Rezki

Sebastian

\
 
 \ /
  Last update: 2020-07-15 21:33    [W:0.853 / U:0.296 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site