--- zzzz-none-000/linux-2.6.13.1/drivers/scsi/sd.c 2005-09-10 02:42:58.000000000 +0000 +++ ohio-7170-487/linux-2.6.13.1/drivers/scsi/sd.c 2009-01-09 12:50:53.000000000 +0000 @@ -1077,6 +1077,15 @@ /* Wait 1 second for next try */ msleep(1000); printk("."); + /* == AVM/WK Fix ported from Kernel 2.6.19 == */ + } else if (sense_valid && sshdr.sense_key == UNIT_ATTENTION && sshdr.asc == 0x28) { + printk (KERN_NOTICE "AVM/WK fix: UNIT_ATTENTION: Medium changed\n"); + if (!spintime) { + spintime = 1; + spintime_value = jiffies; + } + /* Wait 1 second for next try */ + msleep(1000); } else { /* we don't understand the sense code, so it's * probably pointless to loop */