]> 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>
Fri, 6 Jul 2012 19:14:44 +0000 (12:14 -0700)
commitb5693a6ecb7e5b620eae8f02673e1346c2fd8825
treebc85f3a8461153cc43dd7e2345b077d76be96856
parent7c919e9b3afc300b8436c5bca3959cfb96ea3918
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