From: Vladimir Saveliev <vs@namesys.com>
To: Andrew Morton <akpm@osdl.org>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
reiserfs-list@namesys.com
Subject: reiserfs bug fix: add missing pair of lock_kernel()/unlock_kernel()
Date: Thu, 23 Dec 2004 18:35:36 +0300 [thread overview]
Message-ID: <1103816136.8064.136.camel@tribesman.namesys.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 51 bytes --]
Hello
Andrew, please apply this reiserfs bug fix.
[-- Attachment #2: reiserfs-add-missing-lock_kernel.patch --]
[-- Type: text/plain, Size: 902 bytes --]
This patch adds missing lock_kernel()/unlock_kernel() pair in reiserfs_get_dentry
fs/reiserfs/inode.c | 2 ++
1 files changed, 2 insertions(+)
diff -puN fs/reiserfs/inode.c~reiserfs-add-missing-lock_kernel fs/reiserfs/inode.c
--- linux-2.6.10-rc3-mm1/fs/reiserfs/inode.c~reiserfs-add-missing-lock_kernel 2004-12-23 18:23:53.557228800 +0300
+++ linux-2.6.10-rc3-mm1-vs/fs/reiserfs/inode.c 2004-12-23 18:23:53.583230368 +0300
@@ -1447,12 +1447,14 @@ struct dentry *reiserfs_get_dentry(struc
key.on_disk_key.k_objectid = data[0] ;
key.on_disk_key.k_dir_id = data[1] ;
+ reiserfs_write_lock(sb);
inode = reiserfs_iget(sb, &key) ;
if (inode && !IS_ERR(inode) && data[2] != 0 &&
data[2] != inode->i_generation) {
iput(inode) ;
inode = NULL ;
}
+ reiserfs_write_unlock(sb);
if (!inode)
inode = ERR_PTR(-ESTALE);
if (IS_ERR(inode))
_
reply other threads:[~2004-12-23 15:35 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1103816136.8064.136.camel@tribesman.namesys.com \
--to=vs@namesys.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=reiserfs-list@namesys.com \
/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
Powered by JetHome