summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-tle62x0.c
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2012-08-30 05:16:38 (GMT)
committerAlex Elder <elder@inktank.com>2012-10-01 19:30:52 (GMT)
commitcd789ab9cacbda1aad43304b89cff29004b793ea (patch)
tree1338d6dd30abd2b1828bc724c84599afbac9751e /drivers/spi/spi-tle62x0.c
parent4bb1f1ed0063870f34ae5783cda08924964bac0b (diff)
downloadlinux-cd789ab9cacbda1aad43304b89cff29004b793ea.tar.xz
rbd: don't register snapshots in bus_add_dev()
When rbd_bus_add_dev() is called (one spot--in rbd_add()), the rbd image header has not even been read yet. This means that the list of snapshots will be empty at the time of the call. As a result, there is no need for the code that calls rbd_register_snap_dev() for each entry in that list--so get rid of it. Once the header has been read (just after returning), a call will be made to rbd_dev_snap_devs_update(), which will then find every snapshot in the context to be new and will therefore call rbd_register_snap_dev() via __rbd_add_snap_dev() accomplishing the same thing. Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers/spi/spi-tle62x0.c')
0 files changed, 0 insertions, 0 deletions