Skip to content
Commit 8b218b8a authored by Sage Weil's avatar Sage Weil
Browse files

ceph: fix inode removal from snap realm when racing with migration



When an inode was dropped while being migrated between two MDSs,
i_cap_exporting_issued was non-zero such that issue caps were non-zero and
__ceph_is_any_caps(ci) was true.  This prevented the inode from being
removed from the snap realm, even as it was dropped from the cache.

Fix this by dropping any residual i_snap_realm ref in destroy_inode.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 052bb34a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment