--- - branch: netbsd-6 date: Tue Jul 3 21:13:25 UTC 2012 files: - new: 1.392.2.1 old: '1.392' path: src/sys/dev/ata/wd.c pathrev: src/sys/dev/ata/wd.c@1.392.2.1 type: modified id: 20120703T211325Z.c75f8cc2b81b5bc5f7b621eb9bebada16027b065 log: | Pull up revision 1.393 (requested by bouyer in ticket #381). In some case, when an error is reported by the disk, the ahci controller still reports a number of bytes transfered equal to bcount. This then triggers a KASSERT in physio_biodone: if (done == todo) KASSERT(bp->b_error == 0); Detect this case in wd(4) (so that the workaround works for other controllers too if they have the same issue, or if the issue is with the drive) and claim we didn't read/write anything. module: src subject: 'CVS commit: [netbsd-6] src/sys/dev/ata' unixtime: '1341350005' user: jdc