On Mon 20-11-17 01:33:09, Christoph Hellwig wrote: > On Mon, Nov 20, 2017 at 10:25:26AM +0100, Michal Hocko wrote: > > On Fri 17-11-17 09:35:21, Christoph Hellwig wrote: > > > 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.. > > > > Davidlohr has tried that already http://lkml.kernel.org/r/1434398602.1903.15.camel@xxxxxxxxxxxx > > and failed. Doing SRCU inside core kernel is not seen with a great > > support... > > I can't actually find any objection in that thread. What's the problem > Davidlohr ran into? The patch has been dropped because allnoconfig failed to compile back then http://lkml.kernel.org/r/CAP=VYLr0rPWi1aeuk4w1On9CYRNmnEWwJgGtaX=wEvGaBURtrg@xxxxxxxxxxxxxx I have problem to find the follow up discussion though. The main argument was that SRC is not generally available and so the core kernel should rely on it. -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>