From 4390e60163979621f59e3a25a260289986eacb85 Mon Sep 17 00:00:00 2001 From: Matthias Kaehlcke Date: Fri, 10 Aug 2007 14:50:44 -0700 Subject: [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 Reviewed-by: Satyam Sharma Signed-off-by: Andrew Morton Acked-by: Willem Riede Signed-off-by: James Bottomley --- drivers/scsi/osst.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'drivers/scsi/osst.h') diff --git a/drivers/scsi/osst.h b/drivers/scsi/osst.h index 2cc7b5a1606..5aa22740b5d 100644 --- a/drivers/scsi/osst.h +++ b/drivers/scsi/osst.h @@ -4,6 +4,7 @@ #include #include +#include /* 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; -- cgit v1.2.3