Dave Wysochanski <dwysocha@xxxxxxxxxx> wrote: > - xas_lock(&xas); > + xas_lock_irqsave(&xas, flags); > xas_for_each(&xas, page, last) { You probably want to use RCU, not xas_lock(). The pages are locked and so cannot be evicted from the xarray. David