]> git.hungrycats.org Git - linux/commit
rbd: return errors for mapped but deleted snapshot
authorJosh Durgin <josh.durgin@inktank.com>
Tue, 22 Nov 2011 02:14:25 +0000 (18:14 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:51:17 +0000 (08:51 -0800)
commit95268c46ace4492b924abf6e82c6974c152bee29
tree5a08a590cb90fe2f6c55f5388f0d3a2b88bf12f0
parenta2d928ffc91d237f178d769943bc785f1a7f7435
rbd: return errors for mapped but deleted snapshot

When a snapshot is deleted, the OSD will return ENOENT when reading
from it. This is normally interpreted as a hole by rbd, which will
return zeroes. To minimize the time in which this can happen, stop
requests early when we are notified that our snapshot no longer
exists.

[elder@inktank.com: updated __rbd_init_snaps_header() logic]

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
(cherry picked from commit e88a36ec961b8c1899c59c5e4ae35a318c0209d3)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Conflicts:

drivers/block/rbd.c
drivers/block/rbd.c