summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1999-02-11 07:08:58 +0000
committergibbs <gibbs@FreeBSD.org>1999-02-11 07:08:58 +0000
commit4a6d37ea75f2c980a2334e80fee95e1288ac3eaa (patch)
tree95af252f522adc5a4149fe402046ce697ceba651 /sys/cam
parent51586d35df380fdff615b6954dfa7fba7e88a1b3 (diff)
downloadFreeBSD-src-4a6d37ea75f2c980a2334e80fee95e1288ac3eaa.zip
FreeBSD-src-4a6d37ea75f2c980a2334e80fee95e1288ac3eaa.tar.gz
Completely set information in the transaction description before performing
a selwakeup for it. Cosmetic.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_target.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c
index 1095829..a4f6092 100644
--- a/sys/cam/scsi/scsi_target.c
+++ b/sys/cam/scsi/scsi_target.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: scsi_target.c,v 1.6 1998/12/17 00:03:14 gibbs Exp $
+ * $Id: scsi_target.c,v 1.7 1999/01/14 05:57:32 gibbs Exp $
*/
#include <stddef.h> /* For offsetof */
@@ -1332,6 +1332,9 @@ targdone(struct cam_periph *periph, union ccb *done_ccb)
* to the initator.
*/
atio->ccb_h.flags &= ~CAM_DIR_MASK;
+ descr->data_resid = scsi_3btoul(sr->xfer_len);
+ descr->timeout = 5 * 1000;
+ descr->status = SCSI_STATUS_OK;
if (cdb[0] == SEND) {
atio->ccb_h.flags |= CAM_DIR_OUT;
CAM_DEBUG(periph->path,
@@ -1352,9 +1355,6 @@ targdone(struct cam_periph *periph, union ccb *done_ccb)
periph_links.tqe);
selwakeup(&softc->rcv_select);
}
- descr->data_resid = scsi_3btoul(sr->xfer_len);
- descr->timeout = 5 * 1000;
- descr->status = SCSI_STATUS_OK;
/*
* Attempt to satisfy this request with
* a user buffer.
OpenPOWER on IntegriCloud