]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librados: take lock when signaling notify cond
authorSage Weil <sage@inktank.com>
Fri, 6 Jul 2012 01:08:58 +0000 (18:08 -0700)
committerSage Weil <sage@inktank.com>
Wed, 11 Jul 2012 01:18:28 +0000 (18:18 -0700)
commitd3c97dae7809fc32bf95f8b33b11c29942f55222
tree8ed64d2ccee63b646abb6ed96fd45210ec748801
parentec490d878d46c42392f114288afd06e7da548ab3
librados: take lock when signaling notify cond

When we are signaling the cond to indicate that a notify is complete,
take the appropriate lock.  This removes the possibility of a race
that loses our signal.  (That would be very difficult given that there
are network round trips involved, but this makes the lock/cond usage
"correct.")

Signed-off-by: Sage Weil <sage@inktank.com>
src/librados/IoCtxImpl.cc