ceph: more precise CEPH_CLIENT_CAPS_PENDING_CAPSNAP
authorYan, Zheng <zyan@redhat.com>
Thu, 20 Jun 2019 04:09:08 +0000 (12:09 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 8 Jul 2019 12:01:44 +0000 (14:01 +0200)
commit49ada6e8dc9f64ad1e8dd6f7b453c9e584e9f897
tree2a0441ae082748a0ba0a976ca30608037dc1d180
parentd6cee9dbd8c841795cd672b98069866789916648
ceph: more precise CEPH_CLIENT_CAPS_PENDING_CAPSNAP

Client uses this flag to tell mds if there is more cap snap need to
flush. It's mainly for the case that client needs to re-send cap/snap
flushes after mds failover, but CEPH_CAP_ANY_FILE_WR on corresponding
inodes are all released before mds failover.

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