rbd: ignore unmapped snapshots that no longer exist
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 30 Aug 2013 02:16:42 +0000 (19:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jan 2014 20:24:26 +0000 (12:24 -0800)
commit6fe77759c31c0f5fc36837549c5848470113509b
treec4dc676e2766974df7913c39c9e3069400e5910c
parent5b213542db631f8b0bf7b257e8ae2d37b134895c
rbd: ignore unmapped snapshots that no longer exist

commit efadc98aab674153709cc357ba565f04e3164fcd upstream.

This prevents erroring out while adding a device when a snapshot
unrelated to the current mapping is deleted between reading the
snapshot context and reading the snapshot names. If the mapped
snapshot name is not found an error still occurs as usual.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/rbd.c