Re: [PATCH v17 17/21] mm/lru: replace pgdat lru_lock with lruvec lock

From: Alex Shi
Date: Tue Jul 28 2020 - 11:39:56 EST




å 2020/7/28 äå7:34, Alexander Duyck åé:
> It might make more sense to look at modifying
> compact_unlock_should_abort and compact_lock_irqsave (which always
> returns true so should probably be a void) to address the deficiencies
> they have that make them unusable for you.

One of possible reuse for the func compact_unlock_should_abort, could be
like the following, the locked parameter reused different in 2 places.
but, it's seems no this style usage in kernel, isn't it?

Thanks
Alex