]> git.sur5r.net Git - bacula/bacula/commitdiff
Apply 2.4.3-sd-deadlock.patch that should fix bug #1192.
authorKern Sibbald <kern@sibbald.com>
Wed, 3 Dec 2008 08:48:58 +0000 (08:48 +0000)
committerKern Sibbald <kern@sibbald.com>
Wed, 3 Dec 2008 08:48:58 +0000 (08:48 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@8107 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/acquire.c
bacula/src/stored/reserve.c
bacula/src/version.h
bacula/technotes-2.4

index 5b1cc95ceea390e3417f7b35e9a878225ff388ef..d02010bf83a86285c6283b8d7aee5a7a65849f21 100644 (file)
@@ -647,8 +647,8 @@ void detach_dcr_from_dev(DCR *dcr)
 
    /* Detach this dcr only if attached */
    if (dcr->attached_to_dev && dev) {
-      dev->dlock();
       dcr->unreserve_device();
+      dev->dlock();
       dcr->dev->attached_dcrs->remove(dcr);  /* detach dcr from device */
       dcr->attached_to_dev = false;
 //    remove_dcr_from_dcrs(dcr);      /* remove dcr from jcr list */
index 1c0f5f8dfd65df6905c058e8127fc0bf69867cf4..6ee2604cdbb803d5d9ec53e221c1ec8c884381e5 100644 (file)
@@ -498,6 +498,7 @@ void DCR::clear_reserved()
 void DCR::unreserve_device()
 {
    lock_volumes();
+   dev->dlock();
    if (is_reserved()) {
       clear_reserved();
       reserved_volume = false;
@@ -513,6 +514,7 @@ void DCR::unreserve_device()
          volume_unused(this);
       }
    }
+   dev->dunlock();
    unlock_volumes();
 }
 
index ed2d57a5511772ddf615f84e99370e032dad1da1..9c3a43eb2332f7821d38b83368d0da6c6c902fab 100644 (file)
@@ -4,8 +4,8 @@
 
 #undef  VERSION
 #define VERSION "2.4.4"
-#define BDATE   "07 November 2008"
-#define LSMDATE "07Nov08"
+#define BDATE   "03 December 2008"
+#define LSMDATE "03Dec08"
 
 #define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n"
 #define BYEAR "2008"       /* year for copyright messages in progs */
index 8f4fa325f4cabb1dc2899f3e0b151b25076782f9..3d299153243902dbfecdca41c43a828118d7ec5f 100644 (file)
@@ -1,6 +1,8 @@
               Technical notes on version 2.4
 
 General:
+03Dec08
+kes  Apply 2.4.3-sd-deadlock.patch that should fix bug #1192.
 02Dec08
 ebl  Remove extra db_lock() in get_prune_list_for_volume()
 ebl  Apply 2.4.3-prune-deadlock.patch that fixes a problem when