From: Sage Weil Date: Tue, 9 Mar 2010 20:59:08 +0000 (-0800) Subject: ceph: fix inode removal from snap realm when racing with migration X-Git-Tag: v2.6.34-rc3~6^2~25 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b218b8a4a65bf4e304ae8690cadb9100ef029c0;p=pandora-kernel.git 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: Sage Weil --- Reading git-diff-tree failed