Merge lp:~serge-hallyn/ubuntu/maverick/multipath-tools/fix-crash-on-shutdown into lp:ubuntu/maverick/multipath-tools

Proposed by Serge Hallyn
Status: Approved
Approved by: Barry Warsaw
Approved revision: 35
Proposed branch: lp:~serge-hallyn/ubuntu/maverick/multipath-tools/fix-crash-on-shutdown
Merge into: lp:ubuntu/maverick/multipath-tools
Diff against target: 55 lines (+35/-0)
3 files modified
debian/changelog (+7/-0)
debian/patches/0013-multipathd-crash-on-shutdown.patch (+27/-0)
debian/patches/series (+1/-0)
To merge this branch: bzr merge lp:~serge-hallyn/ubuntu/maverick/multipath-tools/fix-crash-on-shutdown
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Approve
Review via email: mp+35674@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

Although I cannot test whether this fixes the bug or not, the patch looks good to me. It mirrors the related change in the Debian package, and the package builds successfully. I cannot upload the change, but I'll approve the merge proposal. Perhaps James can do the upload.

It looks like the natty version of the package is lagging behind the Debian version. Perhaps a sync request is in order?

review: Approve

Unmerged revisions

35. By Serge Hallyn

Apply patch from debian to fix multipathd crash on
shutdown (LP: #488285)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2010-03-08 14:50:04 +0000
3+++ debian/changelog 2010-09-16 15:02:47 +0000
4@@ -1,3 +1,10 @@
5+multipath-tools (0.4.8-14ubuntu5) maverick; urgency=low
6+
7+ * Apply patch from debian to fix multipathd crash on
8+ shutdown (LP: #488285)
9+
10+ -- Serge Hallyn <serge.hallyn@canonical.com> Thu, 16 Sep 2010 09:55:22 -0500
11+
12 multipath-tools (0.4.8-14ubuntu4) lucid; urgency=low
13
14 * debian/control: Move libreadline5-dev build dependency to libreadline-dev.
15
16=== added file 'debian/patches/0013-multipathd-crash-on-shutdown.patch'
17--- debian/patches/0013-multipathd-crash-on-shutdown.patch 1970-01-01 00:00:00 +0000
18+++ debian/patches/0013-multipathd-crash-on-shutdown.patch 2010-09-16 15:02:47 +0000
19@@ -0,0 +1,27 @@
20+From: Hannes Reinecke <hare@suse.de>
21+Date: Wed, 30 Apr 2008 11:03:24 +0200
22+Subject: [PATCH] multipathd crash on shutdown
23+
24+On shutdown multipathd flushes its internal message queue;
25+but we have to check if the messages on the queue are not empty.
26+
27+Signed-off-by: Hannes Reinecke <hare@suse.de>
28+---
29+ libmultipath/log_pthread.c | 3 ++-
30+ 1 files changed, 2 insertions(+), 1 deletions(-)
31+
32+diff --git a/libmultipath/log_pthread.c b/libmultipath/log_pthread.c
33+index 5a82b6a..8976bfb 100644
34+--- a/libmultipath/log_pthread.c
35++++ b/libmultipath/log_pthread.c
36+@@ -33,7 +33,8 @@ static void flush_logqueue (void)
37+ pthread_mutex_lock(logq_lock);
38+ empty = log_dequeue(la->buff);
39+ pthread_mutex_unlock(logq_lock);
40+- log_syslog(la->buff);
41++ if (!empty)
42++ log_syslog(la->buff);
43+ } while (empty == 0);
44+ }
45+
46+--
47
48=== modified file 'debian/patches/series'
49--- debian/patches/series 2010-02-12 11:52:22 +0000
50+++ debian/patches/series 2010-09-16 15:02:47 +0000
51@@ -12,3 +12,4 @@
52 0012--libmultipath-Update-discovery-to-work-with-new-sys.patch
53 1000--set-umask-in-multipathd.patch
54 1001--intel-mpath-prio-alua.patch
55+0013-multipathd-crash-on-shutdown.patch

Subscribers

People subscribed via source and target branches

to all changes: