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

[Cluster-devel] [PATCH] dlm close othercons



This patch addresses a problem introduced with the last round of
lowcomms patches where the 'othercon' connections do not get freed when
the DLM shuts down.

This results in the error message
"slab error in kmem_cache_destroy(): cache `dlm_conn': Can't free all
objects"

and the DLM cannot be restarted without a system reboot.

See bz#428119

Signed-Off-By: Patrick Caulfield <pcaulfie redhat com>
--- gfs2-2.6-nmw/fs/dlm//lowcomms.c.orig	2008-01-09 02:17:08.000000000 -0600
+++ gfs2-2.6-nmw/fs/dlm/lowcomms.c	2008-01-09 02:17:35.000000000 -0600
@@ -1438,6 +1438,8 @@
 		if (con) {
 			close_connection(con, true);
 			kmem_cache_free(con_cache, con);
+			if (con->othercon)
+				kmem_cache_free(con_cache, con->othercon);
 		}
 	}
 	max_nodeid = 0;

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