diff options
author | Matthias Kaehlcke <matthias.kaehlcke@gmail.com> | 2007-08-10 23:50:44 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-10-12 20:50:55 +0200 |
commit | 4390e60163979621f59e3a25a260289986eacb85 (patch) | |
tree | 66bdf6c2077f3cf5ef3617f56f5857b9484d6b5f /drivers/scsi/osst.h | |
parent | [SCSI] arcmsr: irq handler fixes, cleanups, micro-opts (diff) | |
download | linux-4390e60163979621f59e3a25a260289986eacb85.tar.xz linux-4390e60163979621f59e3a25a260289986eacb85.zip |
[SCSI] osst: Use mutex instead of semaphore
The OnStream SCSI Tape driver uses a semaphore as mutex. Use the mutex API
instead of the (binary) semaphore.
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Reviewed-by: Satyam Sharma <satyam@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Willem Riede <wrlk@riede.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/osst.h')
-rw-r--r-- | drivers/scsi/osst.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/osst.h b/drivers/scsi/osst.h index 2cc7b5a1606a..5aa22740b5df 100644 --- a/drivers/scsi/osst.h +++ b/drivers/scsi/osst.h @@ -4,6 +4,7 @@ #include <asm/byteorder.h> #include <linux/completion.h> +#include <linux/mutex.h> /* FIXME - rename and use the following two types or delete them! * and the types really should go to st.h anyway... @@ -532,7 +533,7 @@ struct osst_tape { struct scsi_driver *driver; unsigned capacity; struct scsi_device *device; - struct semaphore lock; /* for serialization */ + struct mutex lock; /* for serialization */ struct completion wait; /* for SCSI commands */ struct osst_buffer * buffer; |