patch-2.1.122 linux/drivers/cdrom/cm206.c

Next file: linux/drivers/cdrom/sbpcd.c
Previous file: linux/drivers/cdrom/cdu31a.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.121/linux/drivers/cdrom/cm206.c linux/drivers/cdrom/cm206.c
@@ -186,6 +186,7 @@
 #include <linux/mm.h>
 #include <linux/malloc.h>
 #include <linux/init.h>
+#include <linux/interrupt.h>
 
 /* #include <linux/ucdrom.h> */
 
@@ -816,6 +817,7 @@
       end_request(0);
       continue;
     }
+    spin_unlock_irq(&io_request_lock);
     error=0;
     for (i=0; i<CURRENT->nr_sectors; i++) {
       int e1, e2;
@@ -838,6 +840,7 @@
 	debug(("cm206_request: %d %d\n", e1, e2));
       }
     }
+    spin_lock_irq(&io_request_lock);
     end_request(!error);
   }
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov