Commit fbdc86f3 authored by Namhyung Kim's avatar Namhyung Kim Committed by Alasdair G Kergon

dm: remove superfluous smp_mb

Since set_current_state() contains a memory barrier in it,
an additional barrier isn't needed.
Signed-off-by: default avatarNamhyung Kim <namhyung@gmail.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 71a16736
...@@ -2326,7 +2326,6 @@ static int dm_wait_for_completion(struct mapped_device *md, int interruptible) ...@@ -2326,7 +2326,6 @@ static int dm_wait_for_completion(struct mapped_device *md, int interruptible)
while (1) { while (1) {
set_current_state(interruptible); set_current_state(interruptible);
smp_mb();
if (!md_in_flight(md)) if (!md_in_flight(md))
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment