From 994d808b1ab277e9a5d5ff3ec43cf433d8733272 Mon Sep 17 00:00:00 2001 From: sageweil Date: Fri, 29 Jun 2007 14:22:18 +0000 Subject: [PATCH] * this _appears_ to fix a valgrind error, and conforms to the 'always signal with lock held' rule. git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1456 29311d96-e01e-0410-9327-a35deaab8ce9 --- branches/sage/cephmds2/ebofs/BlockDevice.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/branches/sage/cephmds2/ebofs/BlockDevice.cc b/branches/sage/cephmds2/ebofs/BlockDevice.cc index 29071fd5bd8da..56c67990a1759 100644 --- a/branches/sage/cephmds2/ebofs/BlockDevice.cc +++ b/branches/sage/cephmds2/ebofs/BlockDevice.cc @@ -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); -- 2.39.5