]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hugetlb: clarify hugetlb_instantiation_mutex usage
authorMichal Hocko <mhocko@suse.cz>
Wed, 30 Nov 2011 04:11:27 +0000 (15:11 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:13:47 +0000 (15:13 +1100)
commit4e94dae5b3bddf91227a38c2b75b158f3746a3c3
tree7f2626e29442ca84c8eac9f125f8c9ca71bea03d
parent1e49af5643d15dcd2bac310037c85b213c840c21
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