summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@gmail.com>2011-10-31 20:18:56 +0000
committerAlasdair G Kergon <agk@redhat.com>2011-10-31 20:18:56 +0000
commitfbdc86f3bd597e108fa03d998132d04fcfe1d669 (patch)
tree3d0ad8ea43576c0b57523a71d345a209f6ffd6fa
parent71a16736a15e3fd11d283c42aa86bf704f6d25ff (diff)
downloadlinux-next-fbdc86f3bd597e108fa03d998132d04fcfe1d669.tar.gz
dm: remove superfluous smp_mb
Since set_current_state() contains a memory barrier in it, an additional barrier isn't needed. Signed-off-by: Namhyung Kim <namhyung@gmail.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
-rw-r--r--drivers/md/dm.c1
1 files changed, 0 insertions, 1 deletions
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;