On Wed, Apr 07, 2021 at 11:28:51AM +0200, Michal Hocko wrote: > An emoty page_list? If yes then sure, this can happen but > list_for_each_entry_safe will simply not iterate. Or what do you mean? Yes, I meant page_list. Yeah, I figured list_for_each_entry_safe() would simply not iterate but I wondered whether we still want the spin_unlock()/spin_lock() in that case. But probably not worth it adding more code, so it is fine. Thanks -- Oscar Salvador SUSE L3