Re: [PATCH 1/2] mm,vmscan: Kill global shrinker lock.
From: Christoph Hellwig
Date: Fri Nov 17 2017 - 12:35:40 EST
On Tue, Nov 14, 2017 at 06:37:42AM +0900, Tetsuo Handa wrote:
> Since do_shrink_slab() can reschedule, we cannot protect shrinker_list
> using one RCU section. But using atomic_inc()/atomic_dec() for each
> do_shrink_slab() call will not impact so much.
But you could use SRCU..