]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: set up watch before announcing disk
authorAlex Elder <elder@inktank.com>
Wed, 29 Aug 2012 22:11:07 +0000 (17:11 -0500)
committerAlex Elder <elder@inktank.com>
Mon, 1 Oct 2012 19:30:52 +0000 (14:30 -0500)
commitd2f031a5e43185d8c1238e6e51fd8c5042a23fe5
tree6506f68e9a517b06a4679ee32ee358daea6ae855
parentcd0fecb162333da855d4031e4921a659f4022429
rbd: set up watch before announcing disk

We're ready to handle header object (refresh) events at the point we
call rbd_bus_add_dev().  Set up the watch request on the rbd image
header just after that, and after we've registered the devices for
the snapshots for the initial snapshot context.  Do this before
announce the disk as available for use.

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c