]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
messenger: Make sure to unlock existing->pipe_lock. There are a few cases in the...
authorGreg Farnum <gregf@hq.newdream.net>
Mon, 18 Oct 2010 18:23:50 +0000 (11:23 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 22 Oct 2010 00:31:58 +0000 (17:31 -0700)
src/msg/SimpleMessenger.cc

index 12a42097af9341668ce70a77c80a06cf31dc39ab..eb487f609362d75e051e475b3c0e5ae873cac852 100644 (file)
@@ -897,6 +897,8 @@ int SimpleMessenger::Pipe::accept()
 
 
  fail_unlocked:
+  if (existing)
+    existing->pipe_lock.Unlock();
   pipe_lock.Lock();
   state = STATE_CLOSED;
   fault();