Skip to contentSkip to conversation

dm: get rid of smp_mb() after set_current_state()

PATCH New Namhyung Kim 1 participant 1 message Aug 10, 2011 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm: get rid of smp_mb() after set_current_state()

Since set_current_state() contains a memory barrier in it, an additional barrier isn't needed.

---
 drivers/md/dm.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
drivers/md/dm.c +0 -1
index 52a8fd8eb17f..2fe3017ba97c 100644
@@ -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;
 
Signature · 1 line
1.7.6