Commit 5dd01be1 authored by Andrea Arcangeli's avatar Andrea Arcangeli Committed by Linus Torvalds

userfaultfd: selftest: don't error out if pthread_mutex_t isn't identical

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: default avatarAndrea 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a5932bf5
...@@ -580,15 +580,6 @@ static int userfaultfd_stress(void) ...@@ -580,15 +580,6 @@ static int userfaultfd_stress(void)
/* verification */ /* verification */
if (bounces & BOUNCE_VERIFY) { if (bounces & BOUNCE_VERIFY) {
for (nr = 0; nr < nr_pages; nr++) { for (nr = 0; nr < nr_pages; nr++) {
if (my_bcmp(area_dst,
area_dst + nr * page_size,
sizeof(pthread_mutex_t))) {
fprintf(stderr,
"error mutex %lu\n",
nr);
err = 1;
bounces = 0;
}
if (*area_count(area_dst, nr) != count_verify[nr]) { if (*area_count(area_dst, nr) != count_verify[nr]) {
fprintf(stderr, fprintf(stderr,
"error area_count %Lu %Lu %lu\n", "error area_count %Lu %Lu %lu\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment