macvtap: use prepare_to_wait/finish_wait to ensure mb
authorHong zhi guo <honkiko@gmail.com>
Wed, 6 Jun 2012 22:36:27 +0000 (22:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Jun 2012 20:18:54 +0000 (13:18 -0700)
commitccf7e72b54253f926a35fdfa0366e0cb9ba72ffd
tree18ae6d687384747f92a99a2ab283f819d46f25f2
parente9939c80e9cb51f0da7d6e70838fd6c90248439f
macvtap: use prepare_to_wait/finish_wait to ensure mb

instead of raw assignment to current->state

Signed-off-by: Hong Zhiguo <honkiko@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c