]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: do not allow thin device activation while pool is suspended
authorMike Snitzer <snitzer@redhat.com>
Fri, 7 Nov 2014 20:09:46 +0000 (15:09 -0500)
committerMike Snitzer <snitzer@redhat.com>
Wed, 19 Nov 2014 16:25:36 +0000 (11:25 -0500)
commite7d3f5eec4f665de55678053de3131a9dcb0158e
tree25054660674523866c2410ac9f79fa28414afceb
parentda251926760e627edb86bcb92e981b50a9cb8a2e
dm thin: do not allow thin device activation while pool is suspended

Otherwise IO could be issued to the pool while it is suspended.

Care was taken to properly interlock between the thin and thin-pool
targets when accessing the pool's 'suspended' flag.  The thin_ctr will
not add a new thin device to the pool's active_thins list if the pool is
susepended.

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