]> 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)
commit4967d8044a7cff0f246b2bb2159b86ce4ad6ae27
treef64e089624dbca2441c93dd54db421cd9df12bbc
parent0e78e14a70c0ae246372a5fe0903be7689ec025e
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 2830aba260ff38b6dd9a3c2cf051cd54f4e5b0dd
    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