]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit3ee4001e0c875ce8ebcdf5ea305e9a105b3687bd
tree6506f68e9a517b06a4679ee32ee358daea6ae855
parent12f029448c3d73e0f30bc5aee5964442aa95c0f4
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