dect
/
linux-2.6
Archived
13
0
Fork 0

dm: add missing memory barrier to dm_suspend

Add memory barrier to fix atomic_read of pending value.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
This commit is contained in:
Milan Broz 2008-02-08 02:09:49 +00:00 committed by Alasdair G Kergon
parent df922075f2
commit 7e5c1e830b
1 changed files with 1 additions and 0 deletions

View File

@ -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;