All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fwd: [PATCH] Latest git -master is not compilable]
@ 2010-02-06  9:01 Christophe Varoqui
  2010-02-08 10:01 ` Alex Zeffertt
  0 siblings, 1 reply; 2+ messages in thread
From: Christophe Varoqui @ 2010-02-06  9:01 UTC (permalink / raw)
  To: alex.zeffertt; +Cc: rumcic, dm-devel

[-- Attachment #1: Type: text/plain, Size: 107 bytes --]

Can you confirm the fix from Rumko does not break your ulibc setup ?

-- 
cvaroqui,
http://www.opensvc.com

[-- Attachment #2: Forwarded message - [PATCH] Latest git -master is not compilable --]
[-- Type: message/rfc822, Size: 5296 bytes --]

[-- Attachment #2.1.1.1: Type: text/plain, Size: 290 bytes --]

Hi!

In latest git -master on line 1443 of multipathd/main.c lock() is called on 
exit_mutex, but since exit_mutex is a pthread_mutex_t, pthread_mutex_lock() 
is needed.

Attached is the one-liner patch, tested it on a gentoo machine and seems to be 
working.
-- 
Regards,
Rumko

[-- Attachment #2.1.1.2: 0001-Use-pthread_mutex_lock-instead-of-lock-since-we-are-.patch --]
[-- Type: text/x-diff, Size: 746 bytes --]

From a6bf54d588c2d0c9d3a97541bcb7b605fd1f3ae0 Mon Sep 17 00:00:00 2001
From: Rumko <rumcic@gmail.com>
Date: Fri, 5 Feb 2010 20:59:21 +0100
Subject: [PATCH] Use pthread_mutex_lock() instead of lock() since we are dealing with a
 mutex directly.

---
 multipathd/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/multipathd/main.c b/multipathd/main.c
index e7955bd..3f7eb49 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -1440,7 +1440,7 @@ child (void * param)
 	pthread_create(&uxlsnr_thr, &misc_attr, uxlsnrloop, vecs);
 	pthread_attr_destroy(&misc_attr);
 
-	lock(&exit_mutex);
+	pthread_mutex_lock(&exit_mutex);
 	pthread_cond_wait(&exit_cond, &exit_mutex);
 
 	/*
-- 
1.6.6


[-- Attachment #2.1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-08 10:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-06  9:01 [Fwd: [PATCH] Latest git -master is not compilable] Christophe Varoqui
2010-02-08 10:01 ` Alex Zeffertt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.