--- zzzz-none-000/linux-2.4.17/drivers/scsi/sd.c 2001-11-09 22:05:06.000000000 +0000 +++ sangam-fb-401/linux-2.4.17/drivers/scsi/sd.c 2005-04-08 07:24:30.000000000 +0000 @@ -1358,7 +1358,17 @@ for (j = max_p - 1; j >= 0; j--) { int index = start + j; +#if 1 + /* + * For now, there are only removable USB mass storage + * devices and this code is run only after someone un- + * plugged the device: A sync is pointless and causes + * nothing but distress... =OS= 20050406 + */ + invalidate_device(MKDEV_SD_PARTITION(index), !SDp->removable); +#else invalidate_device(MKDEV_SD_PARTITION(index), 1); +#endif sd_gendisks->part[index].start_sect = 0; sd_gendisks->part[index].nr_sects = 0; sd_sizes[index] = 0;