Re: [PATCH] mm: Simplify and batch working set shadow pages LRU isolation locking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10/26/2017 07:48 PM, Andi Kleen wrote:
From: Andi Kleen <ak@xxxxxxxxxxxxxxx>

When shrinking the working set shadow pages LRU we currently
use a complicated hand-over locking scheme. The isolation
function runs under the local lru lock for the list, but
it also needs to take the tree_lock for the address space.

This is done by releasing the lru lock, and then trying
to get the tree_lock and retrying on failure.

The lru lock is dropped after trying for the tree_lock, so maybe instead:

This is done by trying to get the tree_lock and then either retrying the operation if we don't get it or releasing the lru lock.


Otherwise the patch looks good, it's a lot simpler.

Reviewed-by: Daniel Jordan <daniel.m.jordan@xxxxxxxxxx>

Daniel

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux