]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: ImageWatcher should cancel in-flight ops on watch error 4499/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 20 Mar 2015 15:56:55 +0000 (11:56 -0400)
committerLoic Dachary <ldachary@redhat.com>
Wed, 29 Apr 2015 18:02:27 +0000 (20:02 +0200)
commitc6159724f065731c41b2d29a48d0f0a3dc82340b
treec0b4cea07fdcfee52599d326b18b1a4a845726c1
parent74c2dc1f3924fa05e2c40f4cceb2ab060493bdfb
librbd: ImageWatcher should cancel in-flight ops on watch error

Upon an watch error notification from librados, pending requests
should be canceled and in-flight IO should be flushed prior to
unlocking the image.

Fixes: #11363
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit fc2e511b2aed4d40eff5101a4c9e513b34e5e58e)
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h