All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] virtio_blk: lock() => unlock() typo in
@ 2012-01-03 14:45 ` Dan Carpenter
  0 siblings, 0 replies; 6+ 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] 6+ messages in thread

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

Thread overview: 6+ 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 Dan Carpenter
2012-01-03 14:45 ` [patch] virtio_blk: lock() => unlock() typo in virtblk_config_changed_work() Dan Carpenter
2012-01-03 15:31 ` [patch] virtio_blk: lock() => unlock() typo in Michael S. Tsirkin
2012-01-03 15:31   ` [patch] virtio_blk: lock() => unlock() typo in virtblk_config_changed_work() Michael S. Tsirkin
2012-01-04  2:32   ` Rusty Russell
2012-01-04  2:44     ` Rusty Russell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.