virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [patch] virtio_blk: lock() => unlock() typo in virtblk_config_changed_work()
@ 2012-01-03 14:45 Dan Carpenter
  2012-01-03 15:31 ` Michael S. Tsirkin
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Carpenter @ 2012-01-03 14:45 UTC (permalink / raw)
  To: Rusty Russell; +Cc: virtualization, kernel-janitors, Michael S. Tsirkin

This will deadlock.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index f3d77b3..ba73661 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -352,7 +352,7 @@ static void virtblk_config_changed_work(struct work_struct *work)
 
 	set_capacity(vblk->disk, capacity);
 done:
-	mutex_lock(&vblk->config_lock);
+	mutex_unlock(&vblk->config_lock);
 }
 
 static void virtblk_config_changed(struct virtio_device *vdev)

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-04  2:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-03 14:45 [patch] virtio_blk: lock() => unlock() typo in virtblk_config_changed_work() Dan Carpenter
2012-01-03 15:31 ` Michael S. Tsirkin
2012-01-04  2:32   ` Rusty Russell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).