commit | 7e5c1e830b2310359a4cfbbf89895dde4abd996a | [log] [tgz] |
---|---|---|
author | Milan Broz <mbroz@redhat.com> | Fri Feb 08 02:09:49 2008 +0000 |
committer | Alasdair G Kergon <agk@redhat.com> | Fri Feb 08 02:09:49 2008 +0000 |
tree | 143d5ff1998b115689347f0346a25b622a888739 | |
parent | df922075f2a55b1ae71a6fe589c1cc1b91381f4f [diff] |
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>
diff --git a/drivers/md/dm.c b/drivers/md/dm.c index f2d24eb..466a6bf 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c
@@ -1410,6 +1410,7 @@ while (1) { set_current_state(TASK_INTERRUPTIBLE); + smp_mb(); if (!atomic_read(&md->pending) || signal_pending(current)) break;