]> sourceware.org Git - lvm2.git/commitdiff
lvmetad: Fix a possible deadlock in pv_clear_all.
authorPetr Rockai <prockai@redhat.com>
Wed, 9 Oct 2013 20:19:51 +0000 (22:19 +0200)
committerPetr Rockai <prockai@redhat.com>
Wed, 9 Oct 2013 22:34:35 +0000 (00:34 +0200)
daemons/lvmetad/lvmetad-core.c

index ed44def0e37c01be1277b6916f015c6edf0b588d..5a841e00a014f245ab149df351283a8fa04417c0 100644 (file)
@@ -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);
This page took 0.035987 seconds and 5 git commands to generate.