dm thin: switch to an atomic_t for tracking pending new block preparations
authorJoe Thornber <ejt@redhat.com>
Fri, 13 Jun 2014 12:57:09 +0000 (13:57 +0100)
committerMike Snitzer <snitzer@redhat.com>
Fri, 1 Aug 2014 16:30:31 +0000 (12:30 -0400)
commit50f3c3efdd5773d90396be07a7ecaa58227ff906
treea0d6222e44377d2283207d6da8de1d0e3467465d
parent6afbc01d75c0266d7da32e2ec1f54d579a35703d
dm thin: switch to an atomic_t for tracking pending new block preparations

Previously we used separate boolean values to track quiescing and
copying actions.  By switching to an atomic_t we can support blocks that
need a partial copy and partial zero.

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