]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: avoid metadata commit if a pool's thin devices haven't changed
authorMike Snitzer <snitzer@redhat.com>
Thu, 6 Feb 2014 11:08:56 +0000 (06:08 -0500)
committerMike Snitzer <snitzer@redhat.com>
Mon, 17 Feb 2014 16:00:05 +0000 (11:00 -0500)
commit76d193e35c86396bd92bf1620a77394a24773461
tree0845a7da235aceef3400a6ad7c6ab49b9c4c7ed9
parent814c228e7d0fca4c40ea62584aba2676bc2da648
dm thin: avoid metadata commit if a pool's thin devices haven't changed

Commit 7584ad9 ("dm thin: commit outstanding data every second")
introduced a periodic commit.  This commit occurs regardless of whether
any thin devices have made changes.

Fix the periodic commit to check if any of a pool's thin devices have
changed using dm_pool_changed_this_transaction().

Reported-by: Alexander Larsson <alexl@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Acked-by: Joe Thornber <ejt@redhat.com>
Cc: stable@vger.kernel.org
drivers/md/dm-thin-metadata.c
drivers/md/dm-thin-metadata.h
drivers/md/dm-thin.c