Skip to content
Commit 4d8e28ff authored by Wu Bo's avatar Wu Bo Committed by Ilya Dryomov
Browse files

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: default avatarWu Bo <wubo40@huawei.com>
Reviewed-by: default avatar"Yan, Zheng" <zyan@redhat.com>
Signed-off-by: default avatarIlya Dryomov <idryomov@gmail.com>
parent 7d8976af
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment