ceph: handle epoch barriers in cap messages
authorJeff Layton <jlayton@redhat.com>
Thu, 13 Apr 2017 15:07:04 +0000 (11:07 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 4 May 2017 07:19:21 +0000 (09:19 +0200)
commit92475f05bdb6daefce3f55f46551153e7ed05f45
treedee77a889f3dee44d2441bb50430f24c98a6d8ea
parent58eb7932ae4d671d2a2377a1779eda96a2789b11
ceph: handle epoch barriers in cap messages

Have the client store and update the osdc epoch_barrier when a cap
message comes in with one.

When sending cap messages, send the epoch barrier as well. This allows
clients to inform servers that their released caps may not be used until
a particular OSD map epoch.

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