summaryrefslogtreecommitdiffstats
path: root/xlators/features/locks/src/common.c
diff options
context:
space:
mode:
authorPavan Sondur <pavan@gluster.com>2010-02-12 04:08:03 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-02-18 08:40:19 -0800
commit90a52d538d49738f2f61dcd45f15e4db76aa1296 (patch)
tree04188dbcee7ab9f3934c716d26c5c532fdb0fd78 /xlators/features/locks/src/common.c
parent03f487c9419fca50d378ce514b014450e46af113 (diff)
features/locks: Set dummy fd ctx in all relevant places so that release callback in locks is always called.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/features/locks/src/common.c')
-rw-r--r--xlators/features/locks/src/common.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c
index d82e47aa36f..3df1312e55e 100644
--- a/xlators/features/locks/src/common.c
+++ b/xlators/features/locks/src/common.c
@@ -359,6 +359,24 @@ pl_trace_flush (xlator_t *this, call_frame_t *frame, fd_t *fd)
}
void
+pl_trace_release (xlator_t *this, fd_t *fd)
+{
+ posix_locks_private_t *priv = NULL;
+ char pl_lockee[256];
+
+ priv = this->private;
+
+ if (!priv->trace)
+ return;
+
+ pl_print_lockee (pl_lockee, 256, fd, NULL);
+
+ gf_log (this->name, GF_LOG_NORMAL,
+ "[RELEASE] Lockee = {%s}", pl_lockee);
+}
+
+
+void
pl_update_refkeeper (xlator_t *this, inode_t *inode)
{
pl_inode_t *pl_inode = NULL;