dm thin: suspend/resume active thin devices when reloading thin-pool
authorMike Snitzer <snitzer@redhat.com>
Wed, 29 Oct 2014 00:58:45 +0000 (20:58 -0400)
committerMike Snitzer <snitzer@redhat.com>
Wed, 19 Nov 2014 17:34:08 +0000 (12:34 -0500)
commit583024d248f486e21479d1912aa2093565455770
tree1bd3b82b4a6db8fff1fb6fa4aa58e5a6596263a0
parentffcc39364160663cda1a3c358f4537302a92459b
dm thin: suspend/resume active thin devices when reloading thin-pool

Before this change it was expected that userspace would first suspend
all active thin devices, reload/resize the thin-pool target, then resume
all active thin devices.  Now the thin-pool suspend/resume will trigger
the suspend/resume of all active thins via appropriate calls to
dm_internal_suspend and dm_internal_resume.

Store the mapped_device for each thin device in struct thin_c to make
these calls possible.

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