diff options
author | Yan, Zheng <zyan@redhat.com> | 2015-07-20 10:14:06 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2015-09-08 23:14:29 +0300 |
commit | 23078637e05460428f803be7d0f46908df8a970a (patch) | |
tree | cb944c5cd124ed8b1d57fdd4cba2f22cff03723c /fs/ceph/ioctl.h | |
parent | 6893162215d7bf08a4273247ec1fc7dedee5135c (diff) | |
download | blackbird-op-linux-23078637e05460428f803be7d0f46908df8a970a.tar.gz blackbird-op-linux-23078637e05460428f803be7d0f46908df8a970a.zip |
ceph: fix queuing inode to mdsdir's snaprealm
During MDS failovers, MClientSnap message may cause kclient to move
some inodes from root directory's snaprealm to mdsdir's snaprealm
and queue snapshots for these inodes. For a FS has never created any
snapshot, both root directory's snaprealm and mdsdir's snaprealm
share the same snapshot contexts (both are ceph_empty_snapc). This
confuses ceph_put_wrbuffer_cap_refs(), make it unable to distinguish
snapshot buffers from head buffers.
The fix is do not use ceph_empty_snapc as snaprealm's cached context.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'fs/ceph/ioctl.h')
0 files changed, 0 insertions, 0 deletions