patch-2.0.31 linux/drivers/scsi/st.c
Next file: linux/drivers/scsi/tmscsim.c
Previous file: linux/drivers/scsi/sr_ioctl.c
Back to the patch index
Back to the overall index
-  Lines: 10
-  Date:
Tue Aug  5 09:03:30 1997
-  Orig file: 
v2.0.30/linux/drivers/scsi/st.c
-  Orig date: 
Fri Feb 28 15:14:18 1997
diff -u --recursive --new-file v2.0.30/linux/drivers/scsi/st.c linux/drivers/scsi/st.c
@@ -1120,7 +1120,8 @@
     }
 
     if (STm->do_async_writes &&
-	((STp->buffer)->buffer_bytes >= STp->write_threshold ||
+	(((STp->buffer)->buffer_bytes >= STp->write_threshold &&
+	  (STp->buffer)->buffer_bytes >= STp->block_size) ||
 	 STp->block_size == 0) ) {
       /* Schedule an asynchronous write */
       if (!SCpnt) {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov