Re: [PATCH 16/16] rcu/tree: Use delayed work instead of hrtimer to refill the cache

2020-10-29 Thread Uladzislau Rezki
On Thu, Oct 29, 2020 at 01:33:55PM -0700, Paul E. McKenney wrote: > On Thu, Oct 29, 2020 at 09:22:41PM +0100, Uladzislau Rezki wrote: > > On Thu, Oct 29, 2020 at 09:13:42PM +0100, Uladzislau Rezki wrote: > > > On Thu, Oct 29, 2020 at 12:47:24PM -0700, Paul E. McKenney wrote: > > > > On Thu, Oct

Re: [PATCH 16/16] rcu/tree: Use delayed work instead of hrtimer to refill the cache

2020-10-29 Thread Paul E. McKenney
On Thu, Oct 29, 2020 at 09:22:41PM +0100, Uladzislau Rezki wrote: > On Thu, Oct 29, 2020 at 09:13:42PM +0100, Uladzislau Rezki wrote: > > On Thu, Oct 29, 2020 at 12:47:24PM -0700, Paul E. McKenney wrote: > > > On Thu, Oct 29, 2020 at 05:50:19PM +0100, Uladzislau Rezki (Sony) wrote: > > > > A

Re: [PATCH 16/16] rcu/tree: Use delayed work instead of hrtimer to refill the cache

2020-10-29 Thread Uladzislau Rezki
On Thu, Oct 29, 2020 at 09:13:42PM +0100, Uladzislau Rezki wrote: > On Thu, Oct 29, 2020 at 12:47:24PM -0700, Paul E. McKenney wrote: > > On Thu, Oct 29, 2020 at 05:50:19PM +0100, Uladzislau Rezki (Sony) wrote: > > > A CONFIG_PREEMPT_COUNT is unconditionally enabled, thus a page > > > can be

Re: [PATCH 16/16] rcu/tree: Use delayed work instead of hrtimer to refill the cache

2020-10-29 Thread Uladzislau Rezki
On Thu, Oct 29, 2020 at 12:47:24PM -0700, Paul E. McKenney wrote: > On Thu, Oct 29, 2020 at 05:50:19PM +0100, Uladzislau Rezki (Sony) wrote: > > A CONFIG_PREEMPT_COUNT is unconditionally enabled, thus a page > > can be obtained directly from a kvfree_rcu() path. To distinguish > > that and take a

Re: [PATCH 16/16] rcu/tree: Use delayed work instead of hrtimer to refill the cache

2020-10-29 Thread Paul E. McKenney
On Thu, Oct 29, 2020 at 05:50:19PM +0100, Uladzislau Rezki (Sony) wrote: > A CONFIG_PREEMPT_COUNT is unconditionally enabled, thus a page > can be obtained directly from a kvfree_rcu() path. To distinguish > that and take a decision the preemptable() macro is used when it > is save to enter

[PATCH 16/16] rcu/tree: Use delayed work instead of hrtimer to refill the cache

2020-10-29 Thread Uladzislau Rezki (Sony)
A CONFIG_PREEMPT_COUNT is unconditionally enabled, thus a page can be obtained directly from a kvfree_rcu() path. To distinguish that and take a decision the preemptable() macro is used when it is save to enter allocator. It means that refilling a cache is not important from timing point of view.