diff options
author | Arjan van de Ven <arjan@infradead.org> | 2006-01-11 07:16:10 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2006-01-12 12:53:11 -0500 |
commit | 0b9506723826c68b50fa33e345700ddcac1bed36 (patch) | |
tree | da3e432ef4517c47ebdc088c6322d0ac51193127 /include/scsi/scsi_host.h | |
parent | dacee84b070c4e705a5b6446f1f0a6a6e2f8d7a4 (diff) |
[SCSI] turn most scsi semaphores into mutexes
the scsi layer is using semaphores in a mutex way, this patch converts
these into using mutexes instead
Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/scsi_host.h')
-rw-r--r-- | include/scsi/scsi_host.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 230bc55c0bfa..467274a764d1 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <linux/list.h> | 5 | #include <linux/list.h> |
6 | #include <linux/types.h> | 6 | #include <linux/types.h> |
7 | #include <linux/workqueue.h> | 7 | #include <linux/workqueue.h> |
8 | #include <linux/mutex.h> | ||
8 | 9 | ||
9 | struct block_device; | 10 | struct block_device; |
10 | struct completion; | 11 | struct completion; |
@@ -469,7 +470,7 @@ struct Scsi_Host { | |||
469 | spinlock_t default_lock; | 470 | spinlock_t default_lock; |
470 | spinlock_t *host_lock; | 471 | spinlock_t *host_lock; |
471 | 472 | ||
472 | struct semaphore scan_mutex;/* serialize scanning activity */ | 473 | struct mutex scan_mutex;/* serialize scanning activity */ |
473 | 474 | ||
474 | struct list_head eh_cmd_q; | 475 | struct list_head eh_cmd_q; |
475 | struct task_struct * ehandler; /* Error recovery thread. */ | 476 | struct task_struct * ehandler; /* Error recovery thread. */ |