ceph: unlock dangling spinlock in try_flush_caps()
authorJeff Layton <jlayton@redhat.com>
Thu, 19 Oct 2017 12:52:58 +0000 (08:52 -0400)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 25 Oct 2017 06:31:15 +0000 (08:31 +0200)
commit6c2838fbdedb9b72a81c931d49e56b229b6cdbca
treeee717ca5689cc898b7d7e9ac07739067dae2bf61
parentbb176f67090ca54869fc1262c913aa69d2ede070
ceph: unlock dangling spinlock in try_flush_caps()

sparse warns:

  fs/ceph/caps.c:2042:9: warning: context imbalance in 'try_flush_caps' - wrong count at exit

We need to exit this function with the lock unlocked, but a couple of
cases leave it locked.

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