Skip to content

Commit

Permalink
dm: remove superfluous smp_mb
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Namhyung Kim authored and Alasdair G Kergon committed Oct 31, 2011
1 parent 71a1673 commit fbdc86f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit fbdc86f

Please sign in to comment.