diff options
author | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-03-23 05:18:48 +0000 |
---|---|---|
committer | Christopher Pascoe <pascoe@cvs.openbsd.org> | 2007-03-23 05:18:48 +0000 |
commit | 63a889ce7cd19a0b4fca4eb018cb9bbc0e43096b (patch) | |
tree | 65d04680b9eb250fda51e590228f0851403206aa /sys/dev/ata/atascsi.c | |
parent | 38b4e64bce8ae363127090d350eb7c47f18b8aa1 (diff) |
Catch timed out disk commands.
Diffstat (limited to 'sys/dev/ata/atascsi.c')
-rw-r--r-- | sys/dev/ata/atascsi.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c index 134a027250a..c7eb5c0d216 100644 --- a/sys/dev/ata/atascsi.c +++ b/sys/dev/ata/atascsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atascsi.c,v 1.33 2007/03/22 05:15:39 pascoe Exp $ */ +/* $OpenBSD: atascsi.c,v 1.34 2007/03/23 05:18:47 pascoe Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -379,6 +379,9 @@ atascsi_disk_cmd_done(struct ata_xfer *xa) printf("%s: error\n", __FUNCTION__); xs->error = XS_DRIVER_STUFFUP; break; + case ATA_S_TIMEOUT: + xs->error = XS_TIMEOUT; + break; default: panic("atascsi_disk_cmd_done: unexpected ata_xfer state (%d)", xa->state); |