|
@@ -626,6 +626,12 @@ static int stress(unsigned long *userfaults)
|
|
|
if (uffd_test_ops->release_pages(area_src))
|
|
|
return 1;
|
|
|
|
|
|
+
|
|
|
+ finished = 1;
|
|
|
+ for (cpu = 0; cpu < nr_cpus; cpu++)
|
|
|
+ if (pthread_join(locking_threads[cpu], NULL))
|
|
|
+ return 1;
|
|
|
+
|
|
|
for (cpu = 0; cpu < nr_cpus; cpu++) {
|
|
|
char c;
|
|
|
if (bounces & BOUNCE_POLL) {
|
|
@@ -643,11 +649,6 @@ static int stress(unsigned long *userfaults)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- finished = 1;
|
|
|
- for (cpu = 0; cpu < nr_cpus; cpu++)
|
|
|
- if (pthread_join(locking_threads[cpu], NULL))
|
|
|
- return 1;
|
|
|
-
|
|
|
return 0;
|
|
|
}
|
|
|
|