ceph: don't WARN if we're forcibly removing the session caps
authorXiubo Li <xiubli@redhat.com>
Wed, 25 Aug 2021 13:45:45 +0000 (21:45 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 2 Sep 2021 20:49:17 +0000 (22:49 +0200)
commita76d0a9c288ea7f5fc01bf05485573ce6b36b839
tree6ea3582b1c6ad1f0e50bb51e91a90c0109f2a1fb
parent42ad631b4d0e0d6da0bfe375af99887251fbf970
ceph: don't WARN if we're forcibly removing the session caps

For example in the case of a forced umount, we'll remove all the session
caps even if they are dirty. Move the warning to a wrapper function and
make most of the callers use it. Call the core function when removing
caps due to a forced umount.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/ceph/caps.c
fs/ceph/mds_client.c
fs/ceph/super.h