From 476abe074b63e4b348b48af9b04a3d27244d7d17 Mon Sep 17 00:00:00 2001 From: Krutika Dhananjay Date: Mon, 1 Feb 2016 11:46:08 +0530 Subject: cluster/afr: Fix heal-info slow response while IO is in progress Backport of: http://review.gluster.org/#/c/13326/ Now heal-info does an open() on the file being examined so that the client at some point sees open-fd count being > 1 and releases the eager-lock so that heal-info doesn't remain blocked forever until IO completes. Change-Id: I7d4a8aa4de459216408b666894ee7bb42e406547 BUG: 1303899 Signed-off-by: Krutika Dhananjay Reviewed-on: http://review.gluster.org/13348 Smoke: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Tested-by: Pranith Kumar Karampuri NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- xlators/cluster/afr/src/afr.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/cluster/afr/src/afr.h') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 8e0a1f18816..52f9c513a9e 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -1097,4 +1097,8 @@ afr_get_need_heal (xlator_t *this); void afr_set_need_heal (xlator_t *this, afr_local_t *local); + +int +afr_selfheal_data_open (xlator_t *this, inode_t *inode, fd_t **fd); + #endif /* __AFR_H__ */ -- cgit