summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rw-r--r--api/src/glfs-fops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
index 66b764dd0da..a3e5afaf627 100644
--- a/api/src/glfs-fops.c
+++ b/api/src/glfs-fops.c
@@ -5180,11 +5180,12 @@ glfs_recall_lease_fd (struct glfs *fs,
list_for_each_entry_safe (glfd, tmp, &glfd_list, list) {
LOCK (&glfd->lock);
{
- if (glfd->state != GLFD_CLOSE)
+ if (glfd->state != GLFD_CLOSE) {
gf_msg_trace (THIS->name, 0,
"glfd (%p) has held lease, "
"calling recall cbk", glfd);
glfd->cbk (lease, glfd->cookie);
+ }
}
UNLOCK (&glfd->lock);