]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
* this _appears_ to fix a valgrind error, and conforms to the 'always signal with...
authorsageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Fri, 29 Jun 2007 14:22:18 +0000 (14:22 +0000)
committersageweil <sageweil@29311d96-e01e-0410-9327-a35deaab8ce9>
Fri, 29 Jun 2007 14:22:18 +0000 (14:22 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1456 29311d96-e01e-0410-9327-a35deaab8ce9

branches/sage/cephmds2/ebofs/BlockDevice.cc

index 29071fd5bd8daff04bff2ecd3e9fb061cac20f82..56c67990a1759e340ef0d6a4f8522a9995c7abff 100644 (file)
@@ -460,7 +460,9 @@ void BlockDevice::finish_io(biovec *bio)
 {
   bio->done = true;
   if (bio->cond) {
+    lock.Lock();   // hmm?
     bio->cond->Signal();
+    lock.Unlock();
   }
   else if (bio->cb) {
     bio->cb->finish((ioh_t)bio, bio->rval);