]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 20 Dec 2013 23:15:15 +0000 (18:15 -0500)
commit2c26730b97c33c009ec900e1772f2c7c7f1a4d02
tree2b920773c2215970946b118489e8fed6afc087ae
parent2cd639035204806ac2d10062824d5d3e6a410fa1
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