]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: allow an image to be opened without watching
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 10 Jul 2012 21:20:55 +0000 (14:20 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Mon, 23 Jul 2012 16:55:42 +0000 (09:55 -0700)
commit233d44a14ba0c35cbb7c81e8f0048465f4faf067
tree3962de6a58c07b56dd673f1dbd1b182888174574
parent4af1f9812b0d43465c7352646afb269b85f9f8c4
librbd: allow an image to be opened without watching

Watching the header of a parent image could produce unreasonable
delays. If hundreds of child images watch the same parent, taking a
snapshot or resizing the parent would wait until all the children are
notified. Since the children are based on snapshots, they don't care
about any changes to the current version of the parent image, and
don't need to re-read the header on each change. Nothing children need
to access their parent snapshot will change.

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