On Thu, Mar 10, 2022 at 11:26:15AM -0800, David Rientjes wrote: > One concern might be the queueing of read locks needed for page faults > behind a collapser of a long range of memory that is otherwise looping > and repeatedly taking the write lock. I would have thought that _not_ batching would improve this situation. Unless our implementation of rwsems has changed since the last time I looked, dropping-and-reacquiring a rwsem while there are pending readers means you go to the end of the line and they all get to handle their page faults.