diff options
| -rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-common.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c index 489a5bf4462..eeca62724b4 100644 --- a/xlators/cluster/afr/src/afr-self-heal-common.c +++ b/xlators/cluster/afr/src/afr-self-heal-common.c @@ -2031,6 +2031,12 @@ afr_self_heal_completion_cbk (call_frame_t *bgsh_frame, xlator_t *this)          return 0;  } +static inline void +afr_set_low_priority (call_frame_t *frame) +{ +        frame->root->pid = -1; +} +  int  afr_self_heal (call_frame_t *frame, xlator_t *this, inode_t *inode)  { @@ -2071,6 +2077,7 @@ afr_self_heal (call_frame_t *frame, xlator_t *this, inode_t *inode)          sh_frame        = copy_frame (frame);          afr_set_lk_owner (sh_frame, this); +        afr_set_low_priority (sh_frame);          sh_local        = afr_local_copy (local, this);          sh_frame->local = sh_local;  | 
