From 8bc35427c85f9cb47dc71adb5000381458fcb44e Mon Sep 17 00:00:00 2001 From: Christopher Pascoe Date: Tue, 20 Mar 2007 06:43:07 +0000 Subject: Calculate the residual and copy it back to the scsi_xfer, so that RW actually works. From dlg@ --- sys/dev/ata/atascsi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/ata') diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c index 19d9864fe8e..f30594ef693 100644 --- a/sys/dev/ata/atascsi.c +++ b/sys/dev/ata/atascsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atascsi.c,v 1.18 2007/03/20 06:41:38 pascoe Exp $ */ +/* $OpenBSD: atascsi.c,v 1.19 2007/03/20 06:43:06 pascoe Exp $ */ /* * Copyright (c) 2007 David Gwynne @@ -461,6 +461,7 @@ atascsi_disk_cmd_done(struct ata_xfer *xa) xa->state); } + xs->resid = xa->resid; ata_put_xfer(xa); xs->flags |= ITSDONE; -- cgit v1.2.3