|
|
3604df |
From b945e99a6c5a9ea623b2c9d0dbc1417ef8e59d4b Mon Sep 17 00:00:00 2001
|
|
|
12a457 |
From: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
12a457 |
Date: Mon, 30 May 2016 17:39:02 +0530
|
|
|
3604df |
Subject: [PATCH 20/86] Revert "gfapi/upcall: Use GF_CALLOC while allocating variables"
|
|
|
12a457 |
|
|
|
12a457 |
The above fix cause another regression for ganesha mount.
|
|
|
12a457 |
The struct which allocated here is a generic structure used by
|
|
|
12a457 |
both gfapi and FSAL_GLUSTER. So allocating it using GF_CALLOC()
|
|
|
12a457 |
is wrong to do. Therefore release that variable using "free()"
|
|
|
12a457 |
instead of GF_FREE()
|
|
|
12a457 |
|
|
|
12a457 |
So reverting that change and fix the same in another way.
|
|
|
12a457 |
|
|
|
12a457 |
This reverts commit 60089f6e16afe6760e0db536086cea5c9ddb5b43.
|
|
|
12a457 |
|
|
|
12a457 |
Please Note :
|
|
|
12a457 |
This is a hacky fix, so patch is sent only to downstream.
|
|
|
12a457 |
Clean fix requires changes in both ganesha and gfapi codes,
|
|
|
12a457 |
with in current time constraint which is difficult to achieve.
|
|
|
12a457 |
|
|
|
12a457 |
Please refer following ML for more details
|
|
|
12a457 |
http://post-office.corp.redhat.com/archives/nfs-ganesha/2016-May/msg00116.html
|
|
|
12a457 |
|
|
|
3604df |
Label: DOWNSTREAM ONLY
|
|
|
12a457 |
|
|
|
12a457 |
Change-Id: I9240de5666df339c794466a9aa2acc285c173cf2
|
|
|
12a457 |
Signed-off-by: Jiffin Tony Thottan <jthottan@redhat.com>
|
|
|
12a457 |
Reviewed-on: https://code.engineering.redhat.com/gerrit/75429
|
|
|
12a457 |
Reviewed-by: Niels de Vos <ndevos@redhat.com>
|
|
|
12a457 |
Tested-by: Niels de Vos <ndevos@redhat.com>
|
|
|
12a457 |
---
|
|
|
12a457 |
api/src/glfs-handleops.c | 6 +++---
|
|
|
12a457 |
1 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
12a457 |
|
|
|
12a457 |
diff --git a/api/src/glfs-handleops.c b/api/src/glfs-handleops.c
|
|
|
3604df |
index f9b4ee9..221c29f 100644
|
|
|
12a457 |
--- a/api/src/glfs-handleops.c
|
|
|
12a457 |
+++ b/api/src/glfs-handleops.c
|
|
|
3604df |
@@ -1891,8 +1891,7 @@ glfs_h_poll_cache_invalidation (struct glfs *fs,
|
|
|
12a457 |
goto out;
|
|
|
12a457 |
}
|
|
|
12a457 |
|
|
|
12a457 |
- up_inode_arg = GF_CALLOC (1, sizeof (struct callback_inode_arg),
|
|
|
12a457 |
- glfs_mt_upcall_entry_t);
|
|
|
12a457 |
+ up_inode_arg = calloc (1, sizeof (struct callback_inode_arg));
|
|
|
12a457 |
GF_VALIDATE_OR_GOTO ("glfs_h_poll_cache_invalidation",
|
|
|
12a457 |
up_inode_arg, out);
|
|
|
12a457 |
|
|
|
3604df |
@@ -1958,7 +1957,8 @@ out:
|
|
|
12a457 |
|
|
|
12a457 |
/* Reset event_arg as well*/
|
|
|
12a457 |
up_arg->event_arg = NULL;
|
|
|
12a457 |
- GF_FREE (up_inode_arg);
|
|
|
12a457 |
+ free (up_inode_arg);
|
|
|
12a457 |
+ up_inode_arg = NULL;
|
|
|
12a457 |
}
|
|
|
12a457 |
return ret;
|
|
|
12a457 |
}
|
|
|
12a457 |
--
|
|
|
12a457 |
1.7.1
|
|
|
12a457 |
|