Skip to content

Commit

Permalink
[TCP] inet_twdr_hangman: Delete unnecessary memory barrier().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Dec 7, 2006
1 parent e16aa20 commit 905eee0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/ipv4/inet_timewait_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 905eee0

Please sign in to comment.