Re: [PATCH -next v2] mm: srcu-ify shrinkers

2015-07-24 Thread Paul Gortmaker
On Tue, Jul 21, 2015 at 8:19 AM, Michal Hocko wrote: > On Thu 16-07-15 13:55:13, Davidlohr Bueso wrote: >> The shrinker_rwsem is a global lock that protects the shrinker_list, >> serializing a shrinking call with register/unregistering the shrinker >> itself. As such, this lock is taken mostly for

Re: [PATCH -next v2] mm: srcu-ify shrinkers

2015-07-21 Thread Michal Hocko
On Thu 16-07-15 13:55:13, Davidlohr Bueso wrote: > The shrinker_rwsem is a global lock that protects the shrinker_list, > serializing a shrinking call with register/unregistering the shrinker > itself. As such, this lock is taken mostly for reading. In the unlikely > case that the the list is being

[PATCH -next v2] mm: srcu-ify shrinkers

2015-07-16 Thread Davidlohr Bueso
The shrinker_rwsem is a global lock that protects the shrinker_list, serializing a shrinking call with register/unregistering the shrinker itself. As such, this lock is taken mostly for reading. In the unlikely case that the the list is being modified, we simply return indicating we want to iterate