]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 20 Jun 2017 10:17:50 +0000 (12:17 +0200)
commite3ebccb3428c40ba4c6913de5006e88e3d47ac60
tree94ba7260102bd7c4541d946d885591c2a47569c4
parent9d48eb3b57d2cd76a49c8f5f5921a56780b5e320
dm cache metadata: fail operations if fail_io mode has been established

BugLink: http://bugs.launchpad.net/bugs/1694621
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>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/md/dm-cache-metadata.c