* [patch 01/12] dlm: fix lowcomms race
@ 2005-07-15 10:34 David Teigland
0 siblings, 0 replies; only message in thread
From: David Teigland @ 2005-07-15 10:34 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
[-- Attachment #1: fix-lowcomms-race.patch --]
[-- Type: text/plain, Size: 989 bytes --]
Fix potential race in lowcomms.
Signed-off-by: Patrick Caulfield <pcaulfie@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Index: linux-2.6.12-mm1/drivers/dlm/lowcomms.c
===================================================================
--- linux-2.6.12-mm1.orig/drivers/dlm/lowcomms.c
+++ linux-2.6.12-mm1/drivers/dlm/lowcomms.c
@@ -1101,8 +1101,8 @@ static void process_output_queue(void)
list_for_each_safe(list, temp, &write_nodes) {
struct nodeinfo *ni =
list_entry(list, struct nodeinfo, write_list);
- list_del(&ni->write_list);
clear_bit(NI_WRITE_PENDING, &ni->flags);
+ list_del(&ni->write_list);
spin_unlock_bh(&write_nodes_lock);
@@ -1271,11 +1271,7 @@ static int daemons_start(void)
/*
* This is quite likely to sleep...
- * Temporarily initialise the waitq head so that lowcomms_send_message
- * doesn't crash if it gets called before the thread is fully
- * initialised
*/
-
int dlm_lowcomms_start(void)
{
int error;
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-07-15 10:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-15 10:34 [patch 01/12] dlm: fix lowcomms race David Teigland
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.