diff options
| author | Mike Snitzer <snitzer@redhat.com> | 2020-01-13 11:18:51 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-02-11 04:35:26 -0800 |
| commit | 1426201af047f233d98958e1862a13f66e9ce09f (patch) | |
| tree | 4ff1af1efe1063ffea604bef39d0321cbf5fec9d /kernel | |
| parent | 40d3d8d6eb64b8b2e7eed1487adeaf3092a248e1 (diff) | |
dm thin metadata: use pool locking at end of dm_pool_metadata_close
commit 44d8ebf436399a40fcd10dd31b29d37823d62fcc upstream.
Ensure that the pool is locked during calls to __commit_transaction and
__destroy_persistent_data_objects. Just being consistent with locking,
but reality is dm_pool_metadata_close is called once pool is being
destroyed so access to pool shouldn't be contended.
Also, use pmd_write_lock_in_core rather than __pmd_write_lock in
dm_pool_commit_metadata and rename __pmd_write_lock to
pmd_write_lock_in_core -- there was no need for the alias.
In addition, verify that the pool is locked in __commit_transaction().
Fixes: 873f258becca ("dm thin metadata: do not write metadata if no changes occurred")
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions
