diff options
author | Yan, Zheng <zyan@redhat.com> | 2017-09-06 10:15:16 +0800 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-09-06 19:57:00 +0200 |
commit | 15b51bd6badbb373c723aa019cf530c8263efd7e (patch) | |
tree | e5e9c111c77b05319364f241440b2d5edee77923 /fs/ceph/mds_client.c | |
parent | f275635ee0b6641151dfaf07b901d7c8d4d8e987 (diff) |
ceph: stop on-going cached readdir if mds revokes FILE_SHARED cap
If directory's FILE_SHARED cap get revoked, dentry in the directory
can get spliced into other directory (Eg, other client move the
dentry into directory B, then we do readdir on directory B). So we
should stop on-going cached readdir. this can be achieved by marking
dir not complete, because __dcache_readdir() checks dir completeness
before emitting each dentry.
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
0 files changed, 0 insertions, 0 deletions