]> git.baikalelectronics.ru Git - 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)
committerMike Snitzer <snitzer@redhat.com>
Fri, 5 May 2017 18:40:13 +0000 (14:40 -0400)
commitb10bbf1b9226afce2f96eda744f95373d3a1739f
tree6ea92feaba250f9751bfae9d0cdc64a5d55cafb4
parent61a9421e584011149b7b7c8ce3993d5ecebb258e
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