diff options
author | Matt Jacob <mjacob@FreeBSD.org> | 2000-07-18 07:05:37 +0000 |
---|---|---|
committer | Matt Jacob <mjacob@FreeBSD.org> | 2000-07-18 07:05:37 +0000 |
commit | d37162ca7abfccfbf48216b4a079c4984c70e5d2 (patch) | |
tree | be584d11166030e20906bc79808160c39b981c9e /sys/dev/isp | |
parent | 910fb4f6ee7f30adc1a9c0192c200a4bca661145 (diff) | |
download | src-d37162ca7abfccfbf48216b4a079c4984c70e5d2.tar.gz src-d37162ca7abfccfbf48216b4a079c4984c70e5d2.zip |
If debugging set, zero out an incoming response entry
when we're done reading it (makes checking things easier).
Before calling isp_notify_ack make sure we're at RUNSTATE-
elsewise we can be responding to LIPs or SCSI bus resets
before we've finished some of the wiring.
Notes
Notes:
svn path=/head/; revision=63388
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/isp_target.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/isp/isp_target.c b/sys/dev/isp/isp_target.c index dfd38d52529a..a099849cd0c0 100644 --- a/sys/dev/isp/isp_target.c +++ b/sys/dev/isp/isp_target.c @@ -240,6 +240,9 @@ isp_target_notify(isp, vptr, optrp) rval = -1; break; } + if (isp_tdebug) { + MEMZERO(vptr, QENTRY_LEN); + } #undef atiop #undef at2iop #undef ctiop @@ -533,7 +536,8 @@ isp_target_async(isp, bus, event) isp->isp_name, event); break; } - isp_notify_ack(isp, NULL); + if (isp->isp_state == ISP_RUNSTATE) + isp_notify_ack(isp, NULL); } |