aboutsummaryrefslogtreecommitdiff
path: root/sys/scsi/st.c
diff options
context:
space:
mode:
authorJustin T. Gibbs <gibbs@FreeBSD.org>1995-07-16 09:13:14 +0000
committerJustin T. Gibbs <gibbs@FreeBSD.org>1995-07-16 09:13:14 +0000
commitffc2aaf2d863eea181604bc86470a776a52e7dc4 (patch)
treeff7414df0f0d80371ab4d0d9d750c79a413a8065 /sys/scsi/st.c
parent567e21c2c0453c972dcd07471738510de6a3e6dd (diff)
downloadsrc-ffc2aaf2d863eea181604bc86470a776a52e7dc4.tar.gz
src-ffc2aaf2d863eea181604bc86470a776a52e7dc4.zip
Do not set SCSI_NOSLEEP on every tape command (the exception being during
probes). Apart from there being no reason to set SCSI_NOSLEEP on every tape command, this prevents controller drivers from sleeping when resources are fully utilized causing unecessary "Oops not queued" errors. This is only noticed for controllers that can run out of resources like the 27/2842 adaptec controllers. Before this fix, it is almost impossible to perform extended tape operations if more than one scsi disk is on the bus with the tape drive with these controllers. This does not address a similar problem that could occur if devices are probed while other targets are active since SCSI_NOSLEEP will still be set in that case.
Notes
Notes: svn path=/head/; revision=9535
Diffstat (limited to 'sys/scsi/st.c')
-rw-r--r--sys/scsi/st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/st.c b/sys/scsi/st.c
index bef2995e07f4..7f5676968ed5 100644
--- a/sys/scsi/st.c
+++ b/sys/scsi/st.c
@@ -12,7 +12,7 @@
* on the understanding that TFS is not responsible for the correct
* functioning of this software in any circumstances.
*
- * $Id: st.c,v 1.36 1995/05/30 08:13:54 rgrimes Exp $
+ * $Id: st.c,v 1.37 1995/07/09 08:14:24 joerg Exp $
*/
/*
@@ -1102,7 +1102,7 @@ ststart(unit, flags)
0, /* can't retry a read on a tape really */
100000,
bp,
- flags | SCSI_NOSLEEP) == SUCCESSFULLY_QUEUED) {
+ flags) == SUCCESSFULLY_QUEUED) {
stqueues++;
} else {
badnews: