aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/osst.h
diff options
context:
space:
mode:
authorMatthias Kaehlcke <matthias.kaehlcke@gmail.com>2007-08-10 17:50:44 -0400
committerJames Bottomley <jejb@mulgrave.localdomain>2007-10-12 14:50:55 -0400
commit4390e60163979621f59e3a25a260289986eacb85 (patch)
tree66bdf6c2077f3cf5ef3617f56f5857b9484d6b5f /drivers/scsi/osst.h
parent488a5c8a9a3b67ae117784cd0d73bef53a73d57d (diff)
[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.h3
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 @@
4 4
5#include <asm/byteorder.h> 5#include <asm/byteorder.h>
6#include <linux/completion.h> 6#include <linux/completion.h>
7#include <linux/mutex.h>
7 8
8/* FIXME - rename and use the following two types or delete them! 9/* FIXME - rename and use the following two types or delete them!
9 * and the types really should go to st.h anyway... 10 * and the types really should go to st.h anyway...
@@ -532,7 +533,7 @@ struct osst_tape {
532 struct scsi_driver *driver; 533 struct scsi_driver *driver;
533 unsigned capacity; 534 unsigned capacity;
534 struct scsi_device *device; 535 struct scsi_device *device;
535 struct semaphore lock; /* for serialization */ 536 struct mutex lock; /* for serialization */
536 struct completion wait; /* for SCSI commands */ 537 struct completion wait; /* for SCSI commands */
537 struct osst_buffer * buffer; 538 struct osst_buffer * buffer;
538 539