aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlmfs
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2010-01-30 09:02:10 -0500
committerJoel Becker <joel.becker@oracle.com>2010-02-26 18:41:18 -0500
commitcbe0e331fdbdb256943499358c75bc098a2134c1 (patch)
treeaa3d20a721ad858006e1d5e4a92eef42136df3bf /fs/ocfs2/dlmfs
parent0016eedc4185a3cd7e578b027a6e69001b85d6c4 (diff)
ocfs2_dlmfs: Enable the use of user cluster stacks.
Unlike ocfs2, dlmfs has no permanent storage. It can't store off a cluster stack it is supposed to be using. So it can't specify the stack name in ocfs2_cluster_connect(). Instead, we create ocfs2_cluster_connect_agnostic(), which simply uses the stack that is currently enabled. This is find for dlmfs, which will rely on the stack initialization. We add the "stackglue" capability to dlmfs's capability list. This lets userspace know dlmfs can be used with all cluster stacks. Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlmfs')
-rw-r--r--fs/ocfs2/dlmfs/dlmfs.c2
-rw-r--r--fs/ocfs2/dlmfs/userdlm.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/ocfs2/dlmfs/dlmfs.c b/fs/ocfs2/dlmfs/dlmfs.c
index 8697366b63ad..1b0de157a08c 100644
--- a/fs/ocfs2/dlmfs/dlmfs.c
+++ b/fs/ocfs2/dlmfs/dlmfs.c
@@ -87,7 +87,7 @@ struct workqueue_struct *user_dlm_worker;
87 * - bast : POLLIN against the file descriptor of a held lock 87 * - bast : POLLIN against the file descriptor of a held lock
88 * signifies a bast fired on the lock. 88 * signifies a bast fired on the lock.
89 */ 89 */
90#define DLMFS_CAPABILITIES "bast" 90#define DLMFS_CAPABILITIES "bast stackglue"
91extern int param_set_dlmfs_capabilities(const char *val, 91extern int param_set_dlmfs_capabilities(const char *val,
92 struct kernel_param *kp) 92 struct kernel_param *kp)
93{ 93{
diff --git a/fs/ocfs2/dlmfs/userdlm.c b/fs/ocfs2/dlmfs/userdlm.c
index c1b6a56a268f..2858ee6003c7 100644
--- a/fs/ocfs2/dlmfs/userdlm.c
+++ b/fs/ocfs2/dlmfs/userdlm.c
@@ -666,10 +666,10 @@ struct ocfs2_cluster_connection *user_dlm_register(struct qstr *name)
666 int rc; 666 int rc;
667 struct ocfs2_cluster_connection *conn; 667 struct ocfs2_cluster_connection *conn;
668 668
669 rc = ocfs2_cluster_connect("o2cb", name->name, name->len, 669 rc = ocfs2_cluster_connect_agnostic(name->name, name->len,
670 &user_dlm_lproto, 670 &user_dlm_lproto,
671 user_dlm_recovery_handler_noop, 671 user_dlm_recovery_handler_noop,
672 NULL, &conn); 672 NULL, &conn);
673 if (rc) 673 if (rc)
674 mlog_errno(rc); 674 mlog_errno(rc);
675 675