public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: "Keijiro Yano" <keijiro_yano@yahoo.co.jp>
To: "Artem B. Bityutskiy" <dedekind@yandex.ru>
Cc: linux-mtd@lists.infradead.org
Subject: Re: jffs2 mutex problem
Date: Mon, 14 Nov 2005 21:55:13 +0900	[thread overview]
Message-ID: <002001c5e91a$a7c87180$0b01a8c0@YANO> (raw)
In-Reply-To: 4375EA0D.2060704@yandex.ru

Hi,

> Well, the patch is not against the latest MTD CVS snapshot which is bad.

Thanks for your information.
I modify my patch to fix this problem.


--- fs.c 10 Feb 2005 10:15:41 -0000 1.1.1.1
+++ fs.c 14 Nov 2005 01:59:24 -0000
@@ -236,6 +236,8 @@
  c = JFFS2_SB_INFO(inode->i_sb);
 
  jffs2_init_inode_info(f);
+
+ down(&f->sem);
  
  ret = jffs2_do_read_inode(c, f, inode->i_ino, &latest_node);
 
@@ -403,6 +405,8 @@
  f = JFFS2_INODE_INFO(inode);
  jffs2_init_inode_info(f);
 
+ down(&f->sem);
+ 
  memset(ri, 0, sizeof(*ri));
  /* Set OS-specific defaults for new inodes */
  ri->uid = cpu_to_je16(current->fsuid);

--- super.c 10 Feb 2005 10:15:41 -0000 1.1.1.1
+++ super.c 14 Nov 2005 01:36:34 -0000
@@ -51,7 +51,7 @@
 
  if ((flags & (SLAB_CTOR_VERIFY|SLAB_CTOR_CONSTRUCTOR)) ==
      SLAB_CTOR_CONSTRUCTOR) {
- init_MUTEX_LOCKED(&ei->sem);
+ init_MUTEX(&ei->sem);
  inode_init_once(&ei->vfs_inode);
  }
 }

--------------------------------------
Know more about Breast Cancer
http://pr.mail.yahoo.co.jp/pinkribbon/

  reply	other threads:[~2005-11-14 12:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-11 15:43 jffs2 mutex problem Keijiro Yano
2005-11-12 13:11 ` Artem B. Bityutskiy
2005-11-14 12:55   ` Keijiro Yano [this message]
2005-11-14 14:55     ` Artem B. Bityutskiy
2005-11-15 13:46       ` Keijiro Yano
2005-11-15 13:54         ` Josh Boyer
2005-11-15 13:57         ` Artem B. Bityutskiy
2005-11-24 16:28         ` Artem B. Bityutskiy
2005-11-25 15:17           ` Keijiro Yano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002001c5e91a$a7c87180$0b01a8c0@YANO' \
    --to=keijiro_yano@yahoo.co.jp \
    --cc=dedekind@yandex.ru \
    --cc=linux-mtd@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox