On Mon, Oct 29, 2012 at 04:12:53AM +0900, Joonsoo Kim wrote: > The pool_lock protects the page_address_pool from concurrent access. > But, access to the page_address_pool is already protected by kmap_lock. > So remove it. > > Signed-off-by: Joonsoo Kim <js1304@xxxxxxxxx> Reviewed-by: Minchan Kin <minchan@xxxxxxxxxx> Looks good to me. Just a nitpick. Please write comment about locking rule like below. > > diff --git a/mm/highmem.c b/mm/highmem.c > index b3b3d68..017bad1 100644 > --- a/mm/highmem.c > +++ b/mm/highmem.c > @@ -328,7 +328,6 @@ struct page_address_map { > * page_address_map freelist, allocated from page_address_maps. > */ /* page_address_pool is protected by kmap_lock */ > static struct list_head page_address_pool; /* freelist */ > -static spinlock_t pool_lock; /* protects page_address_pool */ > -- Kind regards, Minchan Kim -- 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>