]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaed118fb44bbfdf9645c5c38ff1ef0243e8223ee
tree245f2f320e0da3c645bc5f21d0cccc7e2ae6432a
parent6f292a2f5ac462f19f48a9ef5054629d3e58bfa1
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 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/block/virtio_blk.c