[to-be-updated] pass-ocfs2_cluster_connection-to-ocfs2_this_node.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: [to-be-updated] pass-ocfs2_cluster_connection-to-ocfs2_this_node.patch removed from -mm tree
To: rgoldwyn@xxxxxxx,jlbec@xxxxxxxxxxxx,mfasheh@xxxxxxxx,rgoldwyn@xxxxxxxx,mm-commits@xxxxxxxxxxxxxxx
From: akpm@xxxxxxxxxxxxxxxxxxxx
Date: Thu, 21 Nov 2013 16:33:48 -0800


The patch titled
     Subject: ocfs2: pass ocfs2_cluster_connection to ocfs2_this_node
has been removed from the -mm tree.  Its filename was
     pass-ocfs2_cluster_connection-to-ocfs2_this_node.patch

This patch was dropped because an updated version will be merged

------------------------------------------------------
From: Goldwyn Rodrigues <rgoldwyn@xxxxxxx>
Subject: ocfs2: pass ocfs2_cluster_connection to ocfs2_this_node

This is done to differentiate between using and not using controld and use
the connection information accordingly.  We need to be backward
compatible.  So, we use a new enum ocfs2_connection_type to identify when
controld is used and when it is not.

Signed-off-by: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx>
Cc: Joel Becker <jlbec@xxxxxxxxxxxx>
Cc: Mark Fasheh <mfasheh@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 fs/ocfs2/dlmglue.c    |    2 +-
 fs/ocfs2/stack_o2cb.c |    3 ++-
 fs/ocfs2/stack_user.c |   17 +++++++++++++++--
 fs/ocfs2/stackglue.c  |    5 +++--
 fs/ocfs2/stackglue.h  |    6 ++++--
 5 files changed, 25 insertions(+), 8 deletions(-)

diff -puN fs/ocfs2/dlmglue.c~pass-ocfs2_cluster_connection-to-ocfs2_this_node fs/ocfs2/dlmglue.c
--- a/fs/ocfs2/dlmglue.c~pass-ocfs2_cluster_connection-to-ocfs2_this_node
+++ a/fs/ocfs2/dlmglue.c
@@ -3007,7 +3007,7 @@ int ocfs2_dlm_init(struct ocfs2_super *o
 		goto bail;
 	}
 
-	status = ocfs2_cluster_this_node(&osb->node_num);
+	status = ocfs2_cluster_this_node(conn, &osb->node_num);
 	if (status < 0) {
 		mlog_errno(status);
 		mlog(ML_ERROR,
diff -puN fs/ocfs2/stack_o2cb.c~pass-ocfs2_cluster_connection-to-ocfs2_this_node fs/ocfs2/stack_o2cb.c
--- a/fs/ocfs2/stack_o2cb.c~pass-ocfs2_cluster_connection-to-ocfs2_this_node
+++ a/fs/ocfs2/stack_o2cb.c
@@ -398,7 +398,8 @@ static int o2cb_cluster_disconnect(struc
 	return 0;
 }
 
-static int o2cb_cluster_this_node(unsigned int *node)
+static int o2cb_cluster_this_node(struct ocfs2_cluster_connection *conn,
+				  unsigned int *node)
 {
 	int node_num;
 
diff -puN fs/ocfs2/stack_user.c~pass-ocfs2_cluster_connection-to-ocfs2_this_node fs/ocfs2/stack_user.c
--- a/fs/ocfs2/stack_user.c~pass-ocfs2_cluster_connection-to-ocfs2_this_node
+++ a/fs/ocfs2/stack_user.c
@@ -103,6 +103,11 @@
 #define OCFS2_CONTROL_MESSAGE_VERNUM_LEN	2
 #define OCFS2_CONTROL_MESSAGE_NODENUM_LEN	8
 
+enum ocfs2_connection_type {
+	WITH_CONTROLD,
+	NO_CONTROLD
+};
+
 /*
  * ocfs2_live_connection is refcounted because the filesystem and
  * miscdevice sides can detach in different order.  Let's just be safe.
@@ -110,6 +115,7 @@
 struct ocfs2_live_connection {
 	struct list_head		oc_list;
 	struct ocfs2_cluster_connection	*oc_conn;
+	enum ocfs2_connection_type	oc_type;
 	atomic_t                        oc_this_node;
 	int                             oc_our_slot;
 };
@@ -840,6 +846,8 @@ static int user_cluster_connect(struct o
 		goto out;
 	}
 
+	lc->oc_type = WITH_CONTROLD;
+
 	rc = ocfs2_live_connection_new(conn, lc);
 	if (rc)
 		goto out;
@@ -886,11 +894,16 @@ static int user_cluster_disconnect(struc
 	return 0;
 }
 
-static int user_cluster_this_node(unsigned int *this_node)
+static int user_cluster_this_node(struct ocfs2_cluster_connection *conn,
+				  unsigned int *this_node)
 {
 	int rc;
+	struct ocfs2_live_connection *lc = conn->cc_private;
 
-	rc = ocfs2_control_get_this_node();
+	if (lc->oc_type == WITH_CONTROLD)
+		rc = ocfs2_control_get_this_node();
+	else
+		rc = -EINVAL;
 	if (rc < 0)
 		return rc;
 
diff -puN fs/ocfs2/stackglue.c~pass-ocfs2_cluster_connection-to-ocfs2_this_node fs/ocfs2/stackglue.c
--- a/fs/ocfs2/stackglue.c~pass-ocfs2_cluster_connection-to-ocfs2_this_node
+++ a/fs/ocfs2/stackglue.c
@@ -465,9 +465,10 @@ void ocfs2_cluster_hangup(const char *gr
 }
 EXPORT_SYMBOL_GPL(ocfs2_cluster_hangup);
 
-int ocfs2_cluster_this_node(unsigned int *node)
+int ocfs2_cluster_this_node(struct ocfs2_cluster_connection *conn,
+			    unsigned int *node)
 {
-	return active_stack->sp_ops->this_node(node);
+	return active_stack->sp_ops->this_node(conn, node);
 }
 EXPORT_SYMBOL_GPL(ocfs2_cluster_this_node);
 
diff -puN fs/ocfs2/stackglue.h~pass-ocfs2_cluster_connection-to-ocfs2_this_node fs/ocfs2/stackglue.h
--- a/fs/ocfs2/stackglue.h~pass-ocfs2_cluster_connection-to-ocfs2_this_node
+++ a/fs/ocfs2/stackglue.h
@@ -157,7 +157,8 @@ struct ocfs2_stack_operations {
 	 * ->this_node() returns the cluster's unique identifier for the
 	 * local node.
 	 */
-	int (*this_node)(unsigned int *node);
+	int (*this_node)(struct ocfs2_cluster_connection *conn,
+			 unsigned int *node);
 
 	/*
 	 * Call the underlying dlm lock function.  The ->dlm_lock()
@@ -267,7 +268,8 @@ int ocfs2_cluster_connect_agnostic(const
 int ocfs2_cluster_disconnect(struct ocfs2_cluster_connection *conn,
 			     int hangup_pending);
 void ocfs2_cluster_hangup(const char *group, int grouplen);
-int ocfs2_cluster_this_node(unsigned int *node);
+int ocfs2_cluster_this_node(struct ocfs2_cluster_connection *conn,
+			    unsigned int *node);
 
 struct ocfs2_lock_res;
 int ocfs2_dlm_lock(struct ocfs2_cluster_connection *conn,
_

Patches currently in -mm which might be from rgoldwyn@xxxxxxx are

origin.patch
framework-for-version-lvb.patch
use-the-new-dlm-operation-callbacks-while-requesting-new-lockspace.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux