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)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 May 2017 18:40:13 +0000 (14:40 -0400)
commit10add84e276432d9dd8044679a1028dd4084117e
tree6ea92feaba250f9751bfae9d0cdc64a5d55cafb4
parent7ab84db64f119e03b2c42ed919dfee7d6cf0dc3c
dm cache metadata: fail operations if fail_io mode has been established

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.

Cc: stable@vger.kernel.org
Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-cache-metadata.c