]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix another volume_lock dlock order problem
authorKern Sibbald <kern@sibbald.com>
Thu, 10 Dec 2009 11:27:15 +0000 (12:27 +0100)
committerKern Sibbald <kern@sibbald.com>
Thu, 10 Dec 2009 11:27:15 +0000 (12:27 +0100)
bacula/src/stored/mount.c

index 4c022d54df5b9b6985b29a81024ed765edf23dc0..a8646bd73ba450e65e39072f4f056676b20b8294 100644 (file)
@@ -116,9 +116,11 @@ mount_next_vol:
       ask = true;                     /* ask operator to mount tape */
       do_find = true;                 /* re-find a volume after unload */
    }
+   unlock_volumes();
    do_unload();
    do_swapping(true /*is_writing*/);
    do_load(true /*is_writing*/);
+   lock_volumes();
 
    if (do_find && !find_a_volume()) {
       goto no_lock_bail_out;