All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] kernel for building master
Date: Mon, 14 Apr 2008 12:47:32 -0500	[thread overview]
Message-ID: <20080414174732.GC9696@redhat.com> (raw)
In-Reply-To: <20080411162952.6062.qmail@sourceware.org>

On Fri, Apr 11, 2008 at 04:29:52PM -0000, teigland at sourceware.org wrote:
> - Log -----------------------------------------------------------------
> commit 77bce77b5034adf8f00090b13dde7c7d481b0dd9
> Author: David Teigland <teigland@redhat.com>
> Date:   Wed Mar 19 16:05:20 2008 -0500
> 
>     dlm_controld: new version
>     
>     - uses libcpg directly without libgroup (use the -g0 option)
>     - takes over plock handling from gfs_controld
>     - interacts with fenced and fs_controld to coordinate recovery (todo)
>     - runs in backward compat mode by default, using libgroup to interact
>       with old groupd/dlm_controld (-g1 option)
>     - plan to add a new default -g2 option that will detect old groupd's in
>       the cluster and only run in old mode if any exist
>     
>     Signed-off-by: David Teigland <teigland@redhat.com>
> 
> -----------------------------------------------------------------------

This commit assumes dlm kernel changes that are only available in
linux-next or linux-mm (linux/dlm_plock.h).  This goes against our aim to
keep master building against -rc kernels by default, so the following
patch disables the relevant part for now.  Fabio has said he may turn this
ifdef into something more sophisticated.


diff --git a/group/dlm_controld/main.c b/group/dlm_controld/main.c
index b954f53..25c0796 100644
--- a/group/dlm_controld/main.c
+++ b/group/dlm_controld/main.c
@@ -546,11 +546,13 @@ static int loop(void)
 			setup_deadlock();
 		}
 
+#ifdef BUILD_PLOCK
 		rv = setup_plocks();
 		if (rv < 0)
 			goto out;
 		plock_fd = rv;
 		plock_ci = client_add(rv, process_plocks, NULL);
+#endif BUILD_PLOCK
 	}
 
 	for (;;) {
diff --git a/group/dlm_controld/plock.c b/group/dlm_controld/plock.c
index 4dc38ac..5492cc1 100644
--- a/group/dlm_controld/plock.c
+++ b/group/dlm_controld/plock.c
@@ -12,6 +12,8 @@
 
 #include "dlm_daemon.h"
 #include "config.h"
+
+#ifdef BUILD_PLOCK
 #include <linux/dlm_plock.h>
 
 #define PROC_MISC               "/proc/misc"
@@ -2293,3 +2295,21 @@ int dump_plocks(char *name, int fd)
 	return 0;
 }
 
+#else
+
+int setup_plocks(void) { return 0 };
+void process_plocks(int ci) { };
+int limit_plocks(void) { return 0; };
+void receive_plock(struct lockspace *ls, struct dlm_header *hd, int len) { };
+void receive_own(struct lockspace *ls, struct dlm_header *hd, int len) { };
+void receive_sync(struct lockspace *ls, struct dlm_header *hd, int len) { };
+void receive_drop(struct lockspace *ls, struct dlm_header *hd, int len) { };
+void process_saved_plocks(struct lockspace *ls) { };
+void close_plock_checkpoint(struct lockspace *ls) { };
+void store_plocks(struct lockspace *ls) { };
+void retrieve_plocks(struct lockspace *ls) { };
+void purge_plocks(struct lockspace *ls, int nodeid, int unmount) { };
+int dump_plocks(char *name, int fd) { return 0 };
+
+#endif
+



      reply	other threads:[~2008-04-14 17:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-11 16:29 [Cluster-devel] Cluster Project branch, master, updated. gfs-kernel_0_1_22-158-g77bce77 teigland
2008-04-14 17:47 ` David Teigland [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080414174732.GC9696@redhat.com \
    --to=teigland@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.