From: Namhyung Kim Date: Thu, 18 Aug 2011 01:28:49 +0000 (+1000) Subject: Since set_current_state() contains a memory barrier in it, X-Git-Tag: next-20110818~32^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=32f46c3e9e4c542560212b84ac9940176339c152;p=karo-tx-linux.git Since set_current_state() contains a memory barrier in it, an additional barrier isn't needed. Signed-off-by: Namhyung Kim Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm.c b/drivers/md/dm.c index 52a8fd8eb17f..2fe3017ba97c 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -2326,7 +2326,6 @@ static int dm_wait_for_completion(struct mapped_device *md, int interruptible) while (1) { set_current_state(interruptible); - smp_mb(); if (!md_in_flight(md)) break;