]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:40 +0000 (09:08 -0700)
commit7f47aea487df2dc281c7f64ff7430aff3b260af0
treecdca88ae771935f9dbc4672c9d55abb0dc5423d6
parent291e2b3900da45dcc9c58e264f960fcb822bd07a
dm cache: make sure every metadata function checks fail_io

commit d14fcf3dd79c0b8a8d0ba469c44a6b04f3a1403b upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-cache-metadata.c
drivers/md/dm-cache-metadata.h
drivers/md/dm-cache-target.c