Tejun: Please take a look at this thread: http://marc.info/?t=132214525000001&r=1&w=2 Evidently your commit 1196f8b814f32cd04df334abf47648c2a9fd8324 (block: rescan partitions on invalidated devices on -ENOMEDIA too) is causing crashes. The problem is that the partition scanning code calls sd_revalidate_disk() after the underlying scsi_disk structure has been deallocated. There have been numerous bug reports filed on multiple Bugzillas about this, for example, https://bugzilla.redhat.com/show_bug.cgi?id=754518 I don't know the right way to fix this, but it looks like there needs to be some synchronization between del_gendisk() and rescan_partitions(). Or maybe you think the synchronization should be done in the SCSI layer instead. But then what about non-SCSI users of the block layer? Does the block layer guarantee that it won't call methods in disk->fops after del_gendisk() has returned? Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html