Re: [PATCH v4 5/8] hugetlb: call update_and_free_page without hugetlb_lock

From: Oscar Salvador
Date: Wed Apr 07 2021 - 05:38:00 EST


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