diff options
author | Charles Manning <cdhmanning@gmail.com> | 2010-11-03 16:01:12 +1300 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2010-11-03 16:01:12 +1300 |
commit | 73c54aa8c1de3f61a4c211cd47431293a6092f18 (patch) | |
tree | 2f060614008f76909d3e2ac444c5372e2fcf8635 /yaffs_linux.h | |
parent | 3ecea787c3d99a5e13bf3b826dd3ad772fbad810 (diff) |
yaffs: Switch from semaphores to mutexes
Mutex is faster and init_MUTEX has been deprecated, so we'll just switch
to mutexes.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_linux.h')
-rw-r--r-- | yaffs_linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yaffs_linux.h b/yaffs_linux.h index 84d1ce8..3b508cb 100644 --- a/yaffs_linux.h +++ b/yaffs_linux.h @@ -24,7 +24,7 @@ struct yaffs_linux_context { struct super_block *super; struct task_struct *bg_thread; /* Background thread for this device */ int bg_running; - struct semaphore gross_lock; /* Gross locking semaphore */ + struct mutex gross_lock; /* Gross locking mutex*/ u8 *spare_buffer; /* For mtdif2 use. Don't know the size of the buffer * at compile time so we have to allocate it. */ |