From: Petr Rockai Date: Wed, 9 Oct 2013 20:19:51 +0000 (+0200) Subject: lvmetad: Fix a possible deadlock in pv_clear_all. X-Git-Tag: v2_02_104~65 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=cb613d4c101d7e9f51d70d55c1c71a471e6588ab;p=lvm2.git lvmetad: Fix a possible deadlock in pv_clear_all. --- diff --git a/daemons/lvmetad/lvmetad-core.c b/daemons/lvmetad/lvmetad-core.c index ed44def0e..5a841e00a 100644 --- a/daemons/lvmetad/lvmetad-core.c +++ b/daemons/lvmetad/lvmetad-core.c @@ -829,8 +829,8 @@ static response pv_clear_all(lvmetad_state *s, request r) DEBUGLOG(s, "pv_clear_all"); lock_pvid_to_pvmeta(s); - lock_vgid_to_metadata(s); lock_pvid_to_vgid(s); + lock_vgid_to_metadata(s); destroy_metadata_hashes(s); create_metadata_hashes(s);