Commit:     25720c2d73058f4f929f16093f60817ed52a285c
Parent:     39d3520c92cf7a28c07229ca00cc35a1e8026c77
Author:     Patrick Caulfield <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 11 13:39:43 2007 +0100
Committer:  Steven Whitehouse <[EMAIL PROTECTED]>
CommitDate: Tue Aug 14 10:28:05 2007 +0100

    [DLM] Clear othercon pointers when a connection is closed
    This patch clears the othercon pointer and frees the memory when a 
    is closed. This could cause a small memory leak when nodes leave the 
    Signed-Off-By: Patrick Caulfield <[EMAIL PROTECTED]>
    Signed-off-by: Steven Whitehouse <[EMAIL PROTECTED]>
 fs/dlm/lowcomms.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index dd36273..d15fd5f 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -327,6 +327,8 @@ static void close_connection(struct connection *con, bool 
        if (con->othercon && and_other) {
                /* Will only re-enter once. */
                close_connection(con->othercon, false);
+               kmem_cache_free(con_cache, con->othercon);
+               con->othercon = NULL;
        if (con->rx_page) {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to