From f823b85d80bd2c9563a7a9d8762ea668dee13176 Mon Sep 17 00:00:00 2001 From: Pavan Sondur Date: Fri, 12 Feb 2010 04:08:03 +0000 Subject: 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 Signed-off-by: Anand V. Avati BUG: 449 (Handle flock calls in a different domain from fcntl calls) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=449 --- xlators/features/locks/src/common.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'xlators/features/locks/src/common.c') 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 @@ -358,6 +358,24 @@ pl_trace_flush (xlator_t *this, call_frame_t *frame, fd_t *fd) pl_locker, pl_lockee); } +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) { -- cgit