patch-2.3.1 linux/drivers/scsi/hosts.c

Next file: linux/drivers/scsi/hosts.h
Previous file: linux/drivers/scsi/gdth_proc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/drivers/scsi/hosts.c linux/drivers/scsi/hosts.c
@@ -665,7 +665,7 @@
     retval->host_no = max_scsi_hosts++; /* never reuse host_no (DB) */
     next_scsi_host++;
     retval->host_queue = NULL;
-    retval->host_wait = NULL;
+    init_waitqueue_head(&retval->host_wait);
     retval->resetting = 0;
     retval->last_reset = 0;
     retval->irq = 0;
@@ -738,7 +738,7 @@
  */
 static void launch_error_handler_thread(struct Scsi_Host * shpnt)
 {
-            struct semaphore sem = MUTEX_LOCKED;
+            DECLARE_MUTEX_LOCKED(sem);
             
             shpnt->eh_notify = &sem;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)