diff options
author | Namhyung Kim <namhyung@gmail.com> | 2011-10-31 20:18:56 +0000 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2011-10-31 20:18:56 +0000 |
commit | fbdc86f3bd597e108fa03d998132d04fcfe1d669 (patch) | |
tree | 3d0ad8ea43576c0b57523a71d345a209f6ffd6fa /drivers/md/dm.c | |
parent | 71a16736a15e3fd11d283c42aa86bf704f6d25ff (diff) | |
download | lwn-fbdc86f3bd597e108fa03d998132d04fcfe1d669.tar.gz lwn-fbdc86f3bd597e108fa03d998132d04fcfe1d669.zip |
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>
Diffstat (limited to 'drivers/md/dm.c')
-rw-r--r-- | drivers/md/dm.c | 1 |
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; |