ceph: check all mds' caps after page writeback
authorYan, Zheng <zyan@redhat.com>
Thu, 5 Mar 2020 12:21:04 +0000 (20:21 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:42 +0000 (12:42 +0200)
commitbf73c62e7ff8dc220f3f57df4e42f9947320c447
tree51f79339f70165d99272ae502419a464ad2850c7
parent11ba6b9ceeb4e20e0610ad249f9187dba412f787
ceph: check all mds' caps after page writeback

If an inode has caps from multiple mds's, the following can happen:

- non-auth mds revokes Fsc. Fcb is used, so page writeback is queued.
- when writeback finishes, ceph_check_caps() is called with auth only
  flag. ceph_check_caps() invalidates pagecache, but skips checking any
  non-auth caps.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c
fs/ceph/inode.c