Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7e5c1e830b2310359a4cfbbf89895dde4abd996a Commit: 7e5c1e830b2310359a4cfbbf89895dde4abd996a Parent: df922075f2a55b1ae71a6fe589c1cc1b91381f4f Author: Milan Broz <[EMAIL PROTECTED]> AuthorDate: Fri Feb 8 02:09:49 2008 +0000 Committer: Alasdair G Kergon <[EMAIL PROTECTED]> CommitDate: Fri Feb 8 02:09:49 2008 +0000
dm: add missing memory barrier to dm_suspend Add memory barrier to fix atomic_read of pending value. Signed-off-by: Milan Broz <[EMAIL PROTECTED]> Signed-off-by: Alasdair G Kergon <[EMAIL PROTECTED]> --- drivers/md/dm.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) 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 @@ 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; - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html