ceph: keep auth cap when inode has flocks or posix locks
authorYan, Zheng <zyan@redhat.com>
Fri, 8 Sep 2017 07:23:18 +0000 (15:23 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 13 Nov 2017 11:11:11 +0000 (12:11 +0100)
commit89aa593010135660991d05c92528c2c9163d5900
treeca9baae50ad10f9523a290ec2f7081eca8257772
parentbebc6082da0a9f5d47a1ea2edc099bf671058bd4
ceph: keep auth cap when inode has flocks or posix locks

file locks are tracked by inode's auth mds. dropping auth caps
is equivalent to releasing all file locks.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/inode.c
fs/ceph/locks.c
fs/ceph/mds_client.c
fs/ceph/super.h