* [PATCH]: Fix crash in virtio_blk during modprobe ; rmmod ; modprobe
@ 2008-05-21 12:45 Chris Lalancette
0 siblings, 0 replies; only message in thread
From: Chris Lalancette @ 2008-05-21 12:45 UTC (permalink / raw)
To: kvm
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
Fix a modprobe virtio_blk ; rmmod virtio_blk ; modprobe virtio_blk crash; this
was basically because we weren't doing "del_gendisk()" in the remove path.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
[-- Attachment #2: virtio-blk-rmmod-crash.patch --]
[-- Type: text/x-patch, Size: 734 bytes --]
commit 9ae82ccb26be0155ad81b2630090e85639a0dc56
Author: Chris Lalancette <clalance@redhat.com>
Date: Fri May 16 15:31:06 2008 -0400
Fix a modprobe virtio_blk ; rmmod virtio_blk ; modprobe virtio_blk crash;
this was basically because we weren't doing "del_gendisk()" in the remove
path.
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 4962e62..c678ac5 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -294,6 +294,7 @@ static void virtblk_remove(struct virtio_device *vdev)
vdev->config->reset(vdev);
blk_cleanup_queue(vblk->disk->queue);
+ del_gendisk(vblk->disk);
put_disk(vblk->disk);
unregister_blkdev(major, "virtblk");
mempool_destroy(vblk->pool);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-21 12:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-21 12:45 [PATCH]: Fix crash in virtio_blk during modprobe ; rmmod ; modprobe Chris Lalancette
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox