aboutsummaryrefslogtreecommitdiffstats
path: root/main/btrfs-progs/0001-use-pthread_join-instead-of-pthread_tryjoin_np.patch
blob: a19e07f87941934e8af6dd2472b03b990c9dbc3f (plain)
1
2
3
4
5
6
7
8
9
10
11
--- btrfs-progs-v4.2.3/chunk-recover.c
+++ btrfs-progs-v4.2.3/chunk-recover.c.new
@@ -883,7 +883,7 @@
 		for (i = 0; i < devidx; i++) {
 			if (dev_scans[i].bytenr == -1)
 				continue;
-			ret = pthread_tryjoin_np(t_scans[i],
+			ret = pthread_join(t_scans[i],
 						 (void **)&t_rets[i]);
 			if (ret == EBUSY) {
 				all_done = 0;