]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: hold image context lock minimally
authorJosh Durgin <josh.durgin@dreamhost.com>
Fri, 18 Feb 2011 01:30:19 +0000 (17:30 -0800)
committerJosh Durgin <josh.durgin@dreamhost.com>
Fri, 18 Feb 2011 01:32:10 +0000 (17:32 -0800)
commit7171cf68736cec41cbea737f73e69dcb3a45f451
tree31ea08e88efb7ca1bf708dba3cb7d41f5236fb90
parentb93be8c612f74616f93dc7fc713df8b925234a78
librbd: hold image context lock minimally

Holding the image context lock during snapshot removal prevented the
client from responding to a notify, causing a deadlock. This could be
triggered by removing a snapshot while concurrently adding more to the
same image.

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