Re: [PATCH] x86/mm: fix cpu stuck issue in __change_page_attr_set_clr

From: Yang, Bin
Date: Wed Jul 04 2018 - 21:08:56 EST

This is what my new patch tries to improve.

On 04/07/2018, 10:02 PM, "Thomas Gleixner" <tglx@xxxxxxxxxxxxx> wrote:

The check loop itself is stupid as well. Instead of looping in 4K steps
the thing can be rewritten to check for overlapping ranges and then check
explicitely for those. If there is no overlap in the first place the
whole loop thing can be avoided, but that's a pure optimization and needs
more thought than the straight forward and obvious solution to the
problem at hand.