Messages in this thread | | | Date | Wed, 11 Jun 2014 10:50:20 +0900 | From | Minchan Kim <> | Subject | Re: [PATCH 04/10] mm, compaction: skip rechecks when lock was already held |
| |
On Mon, Jun 09, 2014 at 11:26:16AM +0200, Vlastimil Babka wrote: > Compaction scanners try to lock zone locks as late as possible by checking > many page or pageblock properties opportunistically without lock and skipping > them if not unsuitable. For pages that pass the initial checks, some properties > have to be checked again safely under lock. However, if the lock was already > held from a previous iteration in the initial checks, the rechecks are > unnecessary. > > This patch therefore skips the rechecks when the lock was already held. This is > now possible to do, since we don't (potentially) drop and reacquire the lock > between the initial checks and the safe rechecks anymore. > > Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Minchan Kim <minchan@kernel.org>
-- Kind regards, Minchan Kim
| |