]> Pileus Git - ~andy/linux/commit
rbd: only set device exists flag when ready
authorAlex Elder <elder@inktank.com>
Fri, 26 Apr 2013 20:44:36 +0000 (15:44 -0500)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:19:47 +0000 (21:19 -0700)
commit129b79d4498581e52175ac5c3ef2168f616b0e5e
tree0231155bab376aec91d0a99ccefd3bb2a7b505d9
parentfc71d8330e39ef3af816a9c869150250952cb712
rbd: only set device exists flag when ready

Hold off setting the EXISTS rbd device flag until just before we
announce the disk as available for use.  There's no point in doing
so any earlier than that, and at that point the device truly is
fully set up and ready to use.

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