504-yaffs_mutex_fix.patch 611 B

1234567891011121314151617181920
  1. --- a/fs/yaffs2/yaffs_vfs_glue.c
  2. +++ b/fs/yaffs2/yaffs_vfs_glue.c
  3. @@ -3036,7 +3036,7 @@ static struct super_block *yaffs_interna
  4. YINIT_LIST_HEAD(&(yaffs_dev_to_lc(dev)->searchContexts));
  5. param->remove_obj_fn = yaffs_remove_obj_callback;
  6. - init_MUTEX(&(yaffs_dev_to_lc(dev)->grossLock));
  7. + sema_init(&(yaffs_dev_to_lc(dev)->grossLock), 1);
  8. yaffs_gross_lock(dev);
  9. @@ -3494,7 +3494,7 @@ static int __init init_yaffs_fs(void)
  10. - init_MUTEX(&yaffs_context_lock);
  11. + sema_init((&yaffs_context_lock), 1);
  12. /* Install the proc_fs entries */
  13. my_proc_entry = create_proc_entry("yaffs",