Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;