Explorar el Código

[TCP] inet_twdr_hangman: Delete unnecessary memory barrier().

As per Ralf Baechle's observations, the schedule_work() call
should give enough of a memory barrier, so the explicit one
here is totally unnecessary.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller hace 18 años
padre
commit
905eee008b
Se han modificado 1 ficheros con 0 adiciones y 1 borrados
  1. 0 1
      net/ipv4/inet_timewait_sock.c

+ 0 - 1
net/ipv4/inet_timewait_sock.c

@@ -178,7 +178,6 @@ void inet_twdr_hangman(unsigned long data)
 	need_timer = 0;
 	if (inet_twdr_do_twkill_work(twdr, twdr->slot)) {
 		twdr->thread_slots |= (1 << twdr->slot);
-		smp_mb();
 		schedule_work(&twdr->twkill_work);
 		need_timer = 1;
 	} else {