summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2003-01-16 00:24:29 +0000
committernjl <njl@FreeBSD.org>2003-01-16 00:24:29 +0000
commitc944d878a4e54b31628e406331a60df8ef7f3baa (patch)
tree348332012790bc682f84344efc77eaef7fd9782d /sys/cam/scsi
parent1c294df6bb046fbe0991e97931522fc60ae0a9c8 (diff)
downloadFreeBSD-src-c944d878a4e54b31628e406331a60df8ef7f3baa.zip
FreeBSD-src-c944d878a4e54b31628e406331a60df8ef7f3baa.tar.gz
kernel:
* Fix a bug where devices weren't cleaned up on close(): CAM_REQ_CMP != 0 user: * Increase timeout in usermode to CAM_TIME_INFINITY. The initiator is in charge of timeouts and the value was in ms, not seconds. * Bring two debugging printfs under the debug flag * Clean up man page to show increased testing on isp(4) Submitted by: gibbs (bugfixes)
Diffstat (limited to 'sys/cam/scsi')
-rw-r--r--sys/cam/scsi/scsi_target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c
index 31633dc..9db2604 100644
--- a/sys/cam/scsi/scsi_target.c
+++ b/sys/cam/scsi/scsi_target.c
@@ -214,7 +214,7 @@ targclose(dev_t dev, int flag, int fmt, struct thread *td)
softc = (struct targ_softc *)dev->si_drv1;
TARG_LOCK(softc);
error = targdisable(softc);
- if (error == 0) {
+ if (error == CAM_REQ_CMP) {
dev->si_drv1 = 0;
mtx_lock(&targ_mtx);
if (softc->periph != NULL) {
OpenPOWER on IntegriCloud