diff options
author | Joe Thornber <ejt@redhat.com> | 2015-01-23 10:00:07 +0000 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-01-23 10:57:15 -0500 |
commit | 9b1cc9f251affdd27f29fe46d0989ba76c33faf6 (patch) | |
tree | c5e8994e4aae91bc1da322c61051ad25ecd97359 /ipc/ipc_sysctl.c | |
parent | 5164bece1673cdf04782f8ed3fba70743700f5da (diff) |
dm cache: share cache-metadata object across inactive and active DM tables
If a DM table is reloaded with an inactive table when the device is not
suspended (normal procedure for LVM2), then there will be two dm-bufio
objects that can diverge. This can lead to a situation where the
inactive table uses bufio to read metadata at the same time the active
table writes metadata -- resulting in the inactive table having stale
metadata buffers once it is promoted to the active table slot.
Fix this by using reference counting and a global list of cache metadata
objects to ensure there is only one metadata object per metadata device.
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'ipc/ipc_sysctl.c')
0 files changed, 0 insertions, 0 deletions