]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: handle metadata failures more consistently
authorJoe Thornber <ejt@redhat.com>
Thu, 5 Dec 2013 00:51:33 +0000 (19:51 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 Jan 2014 15:14:27 +0000 (10:14 -0500)
commit3c4d59869be35413f8f700816915563f166d66ea
treea9a22bb9eb5f272ac6f59b52fc3627a314e64dfd
parentd0faa78179c613dfdb36226652df908db1afb93f
dm thin: handle metadata failures more consistently

Introduce metadata_operation_failed() wrappers, around set_pool_mode(),
to assist with improving the consistency of how metadata failures are
handled.  Logging is improved and metadata operation failures trigger
read-only mode immediately.

Also, eliminate redundant set_pool_mode() calls in the two
alloc_data_block() caller's error paths.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-thin.c