]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: synchronize the pool mode during suspend
authorMike Snitzer <snitzer@redhat.com>
Fri, 14 Feb 2014 23:10:55 +0000 (18:10 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 4 Mar 2014 16:17:51 +0000 (11:17 -0500)
commit1333eae0c0ae1aa52b7a9029ab63f4722e8805e8
treec04121db0a4f02f49354dd9a1f5ed70aa67ca09f
parent3d050dcd3099e01f13aba969e5def8c6843ce702
dm thin: synchronize the pool mode during suspend

Commit 96a2d900 ("dm thin: handle metadata failures more consistently")
increased potential for the pool's mode to be changed in response to
metadata operation failures.

When the pool mode is changed it isn't synchronized with the mode in
pool_features stored in the target's context (ti->private) that is used
as the basis for (re)establishing the pool mode during resume via
bind_control_target.

It is important that we synchronize the pool mode when it is changed
otherwise the pool may experience and unexpected mode transition on the
next resume (especially if there was no new table load).

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