patch-1.3.28 linux/drivers/block/cm206.c
Next file: linux/drivers/block/floppy.c
Previous file: linux/drivers/block/cdu31a.c
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Mon Sep 18 08:54:07 1995
- Orig file:
v1.3.27/linux/drivers/block/cm206.c
- Orig date:
Sun Sep 3 12:26:50 1995
diff -u --recursive --new-file v1.3.27/linux/drivers/block/cm206.c linux/drivers/block/cm206.c
@@ -638,7 +638,7 @@
}
/* This is not a very smart implementation. We could optimize for
- consecutive block numbers. I'm not conviced this would really
+ consecutive block numbers. I'm not convinced this would really
bring down the processor load. */
static void do_cm206_request(void)
{
@@ -648,7 +648,8 @@
while(1) { /* repeat until all requests have been satisfied */
INIT_REQUEST;
- if (CURRENT == NULL || CURRENT->dev == -1) return;
+ if (CURRENT == NULL || CURRENT->rq_status == RQ_INACTIVE)
+ return;
if (CURRENT->cmd != READ) {
debug(("Non-read command %d on cdrom\n", CURRENT->cmd));
end_request(0);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this