dm cache: make sure every metadata function checks fail_io
authorJoe Thornber <ejt@redhat.com>
Thu, 10 Mar 2016 16:20:58 +0000 (16:20 +0000)
committerMike Snitzer <snitzer@redhat.com>
Thu, 10 Mar 2016 22:12:12 +0000 (17:12 -0500)
commitd14fcf3dd79c0b8a8d0ba469c44a6b04f3a1403b
tree077898b2913e1b3d330317129ac91015d01bff12
parent3f0680402c2d0da58a8b06f7e55d387591b55e61
dm cache: make sure every metadata function checks fail_io

Otherwise operations may be attempted that will only ever go on to crash
(since the metadata device is either missing or unreliable if 'fail_io'
is set).

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-cache-metadata.c
drivers/md/dm-cache-metadata.h
drivers/md/dm-cache-target.c