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 <mbroz@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent df922075
......@@ -1410,6 +1410,7 @@ int dm_suspend(struct mapped_device *md, unsigned suspend_flags)
while (1) {
set_current_state(TASK_INTERRUPTIBLE);
smp_mb();
if (!atomic_read(&md->pending) || signal_pending(current))
break;
......
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