summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2015-12-09 16:23:24 +0000
committerLuis Henriques <luis.henriques@canonical.com>2016-01-18 22:27:24 +0000
commitb8e3468d3fa86c9a2aea3df16aeddaf41f1b5224 (patch)
tree78395d02b0440e022a99c836892d590b43534aff /include
parentb7caa1585d9b6aa0e826aac97249f17f7b82e9b3 (diff)
dm thin metadata: fix bug when taking a metadata snapshot
commit 49e99fc717f624aa75ca755d6e7bc029efd3f0e9 upstream. When you take a metadata snapshot the btree roots for the mapping and details tree need to have their reference counts incremented so they persist for the lifetime of the metadata snap. The roots being incremented were those currently written in the superblock, which could possibly be out of date if concurrent IO is triggering new mappings, breaking of sharing, etc. Fix this by performing a commit with the metadata lock held while taking a metadata snapshot. Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions