e5cbd1f107
Update Source to the latest upstream commit * Previous patches 0001-0014 are included in this commit * Previous patches 0015-0022 are now patches 0007-0014 0001-multipathd-remove-incorrect-pthread_testcancel.patch * Fixed pthread cancellation issue. posted upstream 0002-multipath-add-comments.patch * Posted upstream 0003-multipathd-minor-dmevents-polling-code-cleanups.patch * Fixed minor polling issues. posted upstream 0004-multipathd-remove-unneeded-function-parameter.patch * Posted upstream 0005-mpathcmd-fix-libmpathcmd-license.patch * License clarification. posted upstream 0006-libmultipath-don-t-print-undefined-values.patch * Fixed bug in 'multipath show config'. posted upstream
31 lines
1.0 KiB
Diff
31 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Benjamin Marzinski <bmarzins@redhat.com>
|
|
Date: Wed, 28 Mar 2018 16:47:05 -0500
|
|
Subject: [PATCH] multipathd: remove incorrect pthread_testcancel
|
|
|
|
As Martin Wilck pointed out, a thread that's trying to stop the waiter
|
|
thread should not cancel itself before it gets a chance to do so
|
|
|
|
Cc: Martin Wilck <mwilck@suse.com>
|
|
Fixes: c7625f92 "multipathd: fix waiter thread cancelling"
|
|
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
|
|
---
|
|
multipathd/waiter.c | 1 -
|
|
1 file changed, 1 deletion(-)
|
|
|
|
diff --git a/multipathd/waiter.c b/multipathd/waiter.c
|
|
index 595c69a..0ef8b25 100644
|
|
--- a/multipathd/waiter.c
|
|
+++ b/multipathd/waiter.c
|
|
@@ -68,7 +68,6 @@ void stop_waiter_thread (struct multipath *mpp, struct vectors *vecs)
|
|
mpp->waiter = (pthread_t)0;
|
|
pthread_cleanup_push(cleanup_lock, &waiter_lock);
|
|
lock(&waiter_lock);
|
|
- pthread_testcancel();
|
|
pthread_kill(thread, SIGUSR2);
|
|
pthread_cancel(thread);
|
|
lock_cleanup_pop(&waiter_lock);
|
|
--
|
|
2.7.4
|
|
|