ceph: check if file lock exists before sending unlock request
authorYan, Zheng <zyan@redhat.com>
Tue, 11 Feb 2020 14:54:43 +0000 (22:54 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 30 Mar 2020 10:42:40 +0000 (12:42 +0200)
commitbbb480ab05b2c148d8f8378660bfddd46761e86e
tree549a60bba327156cb736fe011f3f49ee29333855
parentcb63483ad06d5ae57c76cf15ba0f51fad0900417
ceph: check if file lock exists before sending unlock request

When a process exits, kernel closes its files. locks_remove_file()
is called to remove file locks on these files. locks_remove_file()
tries unlocking files even there is no file lock.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/locks.c