]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: flush cache when set_snap() is called 163/head
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 28 Mar 2013 00:30:42 +0000 (17:30 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Thu, 28 Mar 2013 07:10:05 +0000 (00:10 -0700)
commit613b7085bb48cde1e464b7a97c00b8751e0e917f
treedf639646edd34e824d8395778b99f1a7502683f8
parent295c92ce91f7021faf9beb7fc50c36cbe702d9c8
librbd: flush cache when set_snap() is called

If there are writes pending, they should be sent while the image
is still writeable. If the image becomes read-only, flushing the
cache will just mark everything dirty again due to -EROFS.

Fixes: #4525
Backport: bobtail
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/librbd/internal.cc