Commit 7e5c1e83 authored by Milan Broz's avatar Milan Broz Committed by Alasdair G Kergon
Browse files

dm: add missing memory barrier to dm_suspend

Add memory barrier to fix atomic_read of pending value.

Signed-off-by: default avatarMilan Broz <>
Signed-off-by: default avatarAlasdair G Kergon <>
parent df922075
......@@ -1410,6 +1410,7 @@ int dm_suspend(struct mapped_device *md, unsigned suspend_flags)
while (1) {
if (!atomic_read(&md->pending) || signal_pending(current))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment