WR cap is allowed for the loner client when filelock is in excl->mix
state. MDS should share max size with the loner client in this case.
Otherwise the client may wait for the max size forever.
Fixes: #8092
Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
issue_caps(in, cap);
}
- if (share && in->is_auth() && in->filelock.is_stable())
+ if (share && in->is_auth() &&
+ (in->filelock.gcaps_allowed(CAP_LONER) & (CEPH_CAP_GWR|CEPH_CAP_GBUFFER)))
share_inode_max_size(in);
}
issue_caps_set(need_issue);