rbd: use watch/notify for changes in rbd header
authorYehuda Sadeh <yehuda@hq.newdream.net>
Mon, 21 Mar 2011 22:10:11 +0000 (15:10 -0700)
committerSage Weil <sage@newdream.net>
Tue, 22 Mar 2011 18:33:56 +0000 (11:33 -0700)
commit59c2be1e4d42c0d4949cecdeef3f37070a1fbc13
tree919f191a2f2840b510dce246210564bf45200616
parenta40c4f10e3fb96030358e49abd010c1f08446fa3
rbd: use watch/notify for changes in rbd header

Send notifications when we change the rbd header (e.g. create a snapshot)
and wait for such notifications.  This allows synchronizing the snapshot
creation between different rbd clients/rools.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
drivers/block/rbd.c