]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: ensure ImageWatcher notifications are idempotent 3695/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 6 Feb 2015 02:14:42 +0000 (21:14 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 6 Feb 2015 02:25:43 +0000 (21:25 -0500)
commit9f2f306f0802d30670cc31f9635937e6ead271ce
treee96afe302920b4e530db8a63ca29527f7667c636
parent7890256772394ceff6837056b327780fbdd87cd8
librbd: ensure ImageWatcher notifications are idempotent

Ensure that ImageWatcher can support receiving duplicate notifications
from librados.  Resize and flatten now pass a fixed request id and
the lock owner matches those ids with in-progress requests. Also
protect against loopback notifications that might result in incorrect
behavior across exclusive lock states.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/ImageCtx.h
src/librbd/ImageWatcher.cc
src/librbd/ImageWatcher.h
src/librbd/internal.cc