]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-net: drop config_mutex
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Oct 2014 23:52:29 +0000 (10:22 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Oct 2014 23:54:59 +0000 (10:24 +1030)
commit0024be8ba74d7e0197b119cdafa8298878c756a9
treef64e089624dbca2441c93dd54db421cd9df12bbc
parent47222ad0a479291f071ceb7a65c1624f31a50559
virtio-net: drop config_mutex

config_mutex served two purposes: prevent multiple concurrent config
change handlers, and synchronize access to config_enable flag.

Since commit 51b2a627a90beb6efbb66ebf4d9a68c99dd43156
    workqueue: make all workqueues non-reentrant
all workqueues are non-reentrant, and config_enable
is now gone.

Get rid of the unnecessary lock.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c