virtio-blk: 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:57 +0000 (10:24 +1030)
commit1f54b0c055b9322f4e7acb49c492edc5accd15ae
tree245f2f320e0da3c645bc5f21d0cccc7e2ae6432a
parentcc74f71934da13fa979669467c04f0d2e5563112
virtio-blk: drop config_mutex

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

Since commit dbf2576e37da0fcc7aacbfbb9fd5d3de7888a3c1
    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/block/virtio_blk.c