mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-21 00:49:00 +07:00
ceph: include migrating caps in issued set
We should include caps that are mid-migration (we've received the EXPORT, but not the IMPORT) in the issued caps set. Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
e53a8fd773
commit
7af8f1e4aa
@ -655,7 +655,7 @@ static int __cap_is_valid(struct ceph_cap *cap)
|
||||
*/
|
||||
int __ceph_caps_issued(struct ceph_inode_info *ci, int *implemented)
|
||||
{
|
||||
int have = ci->i_snap_caps;
|
||||
int have = ci->i_snap_caps | ci->i_cap_exporting_issued;
|
||||
struct ceph_cap *cap;
|
||||
struct rb_node *p;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user