ceph: update ceph_dentry_info::lease_session when necessary
authorYan, Zheng <zyan@redhat.com>
Mon, 3 Jul 2017 01:09:10 +0000 (09:09 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Fri, 7 Jul 2017 15:25:14 +0000 (17:25 +0200)
commit481f001ffa5d8e9d72f8206e92f73ded076eeb30
treecf3c166e865e9304966c93ea08f914c66dee8350
parent1d8f83604c4244d93c5a49f5107624769df6248f
ceph: update ceph_dentry_info::lease_session when necessary

Current code does not update ceph_dentry_info::lease_session once
it is set. If auth mds of corresponding dentry changes, dentry lease
keeps in an invalid state.

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/inode.c