]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b478e93b13a67c670f617d093dc83bb196ef44e
treedee77a889f3dee44d2441bb50430f24c98a6d8ea
parent47cdf5963ee740dbdbc271c5a266c44cb5fdc1cd
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