commit | 4d8e28ff3106b093d98bfd2eceb9b430c70a8758 | [log] [tgz] |
---|---|---|
author | Wu Bo <wubo40@huawei.com> | Thu Apr 30 14:12:49 2020 +0800 |
committer | Ilya Dryomov <idryomov@gmail.com> | Mon May 04 19:14:23 2020 +0200 |
tree | e892c8e0b5ec7a78997cf977451f56f22527dbce | |
parent | 7d8976afad18d4548ee472e526b126ab74012807 [diff] |
ceph: fix double unlock in handle_cap_export() If the ceph_mdsc_open_export_target_session() return fails, it will do a "goto retry", but the session mutex has already been unlocked. Re-lock the mutex in that case to ensure that we don't unlock it twice. Signed-off-by: Wu Bo <wubo40@huawei.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>