rbd: call rbd_init_disk() sooner
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)
commit0f308a3188b37f36bc5a078f5fe039a41714476e
tree89a847eb16afdea9712f8fbbdf7086e57762baaf
parent85ae8926751db5e09b9a12ee44609ee9e74b7aad
rbd: call rbd_init_disk() sooner

Call rbd_init_disk() from rbd_add() as soon as we have the major
device number for the mapping.

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