[Fix] Re: [2.4.8-ac5 and earlier] fatal mount-problem

Alexander Viro (viro@math.psu.edu)
Mon, 20 Aug 2001 09:35:13 -0400 (EDT)


Alan, please apply. sync_dev() in ->release() is 100% bogus - all flushing
the stuff out is done by callers (blkdev_close() et.al.).

--- AC8-7/drivers/scsi/sr.c Sun Jul 29 01:54:47 2001
+++ linux/drivers/scsi/sr.c Mon Aug 20 09:25:39 2001
@@ -101,7 +101,6 @@
{
if (scsi_CDs[MINOR(cdi->dev)].device->sector_size > 2048)
sr_set_blocklength(MINOR(cdi->dev), 2048);
- sync_dev(cdi->dev);
scsi_CDs[MINOR(cdi->dev)].device->access_count--;
if (scsi_CDs[MINOR(cdi->dev)].device->host->hostt->module)
__MOD_DEC_USE_COUNT(scsi_CDs[MINOR(cdi->dev)].device->host->hostt->module);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/