dm cache metadata: fail operations if fail_io mode has been established
authorMike Snitzer <snitzer@redhat.com>
Fri, 5 May 2017 18:40:13 +0000 (14:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 13:44:33 +0000 (15:44 +0200)
commite69242436b6b086a6f342f715c68389596a9a7ac
tree47cfa34818b4c84ca627d4dd5647008a2783ca65
parent042d8dbf69c6ca0d542eaf41480d9303c36c56a9
dm cache metadata: fail operations if fail_io mode has been established

commit 10add84e276432d9dd8044679a1028dd4084117e upstream.

Otherwise it is possible to trigger crashes due to the metadata being
inaccessible yet these methods don't safely account for that possibility
without these checks.

Reported-by: Mikulas Patocka <mpatocka@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