]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: make image contexts threadsafe
authorJosh Durgin <josh.durgin@dreamhost.com>
Wed, 25 May 2011 21:15:36 +0000 (14:15 -0700)
committerJosh Durgin <josh.durgin@dreamhost.com>
Wed, 25 May 2011 21:34:49 +0000 (14:34 -0700)
commit596a3d6aaaf35e55ee8d3e5387f9ab0aa4d5911e
tree8fb702e1c93d156f2ce03b4374be6be60b84acf8
parente3dd77d82d461b88a0cae2d9db215c1688163648
librbd: make image contexts threadsafe

Use refresh_lock to protect the needs_refresh member, and
ImageContext::lock for the header and snapshot metadata.

Signed-off-by: Josh Durgin <josh.durgin@dreamhost.com>
src/librbd.cc