]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hugetlb: clarify hugetlb_instantiation_mutex usage
authorMichal Hocko <mhocko@suse.cz>
Thu, 8 Dec 2011 04:41:44 +0000 (15:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 9 Dec 2011 04:52:34 +0000 (15:52 +1100)
commitbde445ef13ba7ce7fbb07ef1b13c81014fa07d61
tree6c9e73b1735beaf8912261cfa50ec7d14976bf5d
parent27ffc16832a14438d287364d35cfa9510febb38a
hugetlb: clarify hugetlb_instantiation_mutex usage

Let's make it clear that we cannot race with other fault handlers due to
hugetlb (global) mutex.  Also make it clear that we want to keep pte_same
checks anayway to have a transition from the global mutex easier.

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Cc: Hillf Danton <dhillf@gmail.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c