]> www.infradead.org Git - users/jedix/linux-maple.git/commit
userfaultfd: selftest: don't error out if pthread_mutex_t isn't identical
authorAndrea Arcangeli <aarcange@redhat.com>
Tue, 22 Sep 2015 21:59:06 +0000 (14:59 -0700)
committerDhaval Giani <dhaval.giani@oracle.com>
Fri, 20 Jan 2017 18:53:21 +0000 (13:53 -0500)
commita025d1435169e3a38ab9d8e104214ae49bece26e
treec077f7f33f5529dca567d6b48d6563e249e13aa1
parentdebb63d80088195fb1a33c7711bcf136b0d436c2
userfaultfd: selftest: don't error out if pthread_mutex_t isn't identical

Orabug: 21685254

On ppc big endian this check fails, the mutex doesn't necessarily need
to be identical for all pages after pthread_mutex_lock/unlock cycles.
The count verification (outside of the pthread_mutex_t structure)
suffices and that is retained.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Cc: Thierry Reding <treding@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 5dd01be14565df814408327971775f36e55bf5e3)
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Reviewed-by: Dhaval Giani <dhaval.giani@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
tools/testing/selftests/vm/userfaultfd.c