patch-2.0.33 linux/drivers/scsi/aic7xxx/aic7xxx.seq
Next file: linux/drivers/scsi/aic7xxx.c
Previous file: linux/drivers/char/ftape/kernel-interface.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Wed Dec 10 18:21:47 1997
- Orig file:
v2.0.32/linux/drivers/scsi/aic7xxx/aic7xxx.seq
- Orig date:
Wed Aug 13 09:53:45 1997
diff -u --recursive --new-file v2.0.32/linux/drivers/scsi/aic7xxx/aic7xxx.seq linux/drivers/scsi/aic7xxx/aic7xxx.seq
@@ -1121,15 +1121,10 @@
dequeue_disc_scb:
mov SCBPTR, DISCONNECTED_SCBH;
/*
- * If we have a residual, then we are in the middle of some I/O
- * and we have to send this SCB back up to the kernel so that the
- * saved data pointers and residual information isn't lost.
+ * Whenever we are going to dequeue a disconnected SCB and wipe it out
+ * with a new SCB, we always send the SCB back to the kernel to make sure
+ * any residual info and any save/restore pointers are saved for later use..
*/
- test SCB_CONTROL, MUST_DMAUP_SCB jz . + 3;
- and SCB_CONTROL, ~MUST_DMAUP_SCB;
- jmp dma_up_scb;
- test SCB_RESID_SGCNT,0xff jnz dma_up_scb;
- cmp SCB_LINKED_NEXT, SCB_LIST_NULL je unlink_disc_scb;
dma_up_scb:
mvi DMAPARAMS, FIFORESET;
mov SCB_TAG call dma_scb;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov