]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5e199f11345834b07e9b9d952493710ef0b41b45
tree919f191a2f2840b510dce246210564bf45200616
parent3d2ffc6ac7050323501f548b7615e83f864a94e2
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