Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;