This was missed in an earlier patch and i've actually had a crash here.

https://virtuozzo.atlassian.net/browse/VSTOR-91821
Signed-off-by: Alexander Atanasov <alexander.atana...@virtuozzo.com>
---
 drivers/md/dm-ploop-map.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/md/dm-ploop-map.c b/drivers/md/dm-ploop-map.c
index ab87f67537f5..bf71572ca612 100644
--- a/drivers/md/dm-ploop-map.c
+++ b/drivers/md/dm-ploop-map.c
@@ -837,7 +837,7 @@ static void ploop_advance_local_after_bat_wb(struct ploop 
*ploop,
                        continue;
 
                if (success) {
-                       bat_entries[i] = READ_ONCE(dst_clu[i]);
+                       WRITE_ONCE(bat_entries[i], READ_ONCE(dst_clu[i]));
                        WRITE_ONCE(md->bat_levels[i], ploop_top_level(ploop));
                } else {
                        ploop_hole_set_bit(i + off, ploop);
-- 
2.43.0

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to