From: Rene Scharfe <l.s.r@web.de>
To: Linus Torvalds <torvalds@osdl.org>
Cc: linux-kernel@vger.kernel.org,
Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>,
Timo Maier <tam@gmx.de>
Subject: [PATCH][2.6] HPFS: missing lock_kernel() in hpfs_readdir()
Date: Sat, 13 Dec 2003 19:34:58 +0100 [thread overview]
Message-ID: <20031213193458.0e4a4b97.l.s.r@web.de> (raw)
Hi Linus,
recently the BKL was pushed from vfs_readdir() into the filesystem
specific functions. But only the unlock_kernel() made it into the HPFS
code, lock_kernel() got lost on the way. This rendered the filesystem
unusable.
The patch below adds the missing lock_kernel(). It's been tested by Timo
Maier who also reported the problem earlier today.
Please apply.
Thanks,
René
--- linux-2.6.0-test11/fs/hpfs/dir.c~ 2003-11-26 21:43:26.000000000 +0100
+++ linux-2.6.0-test11/fs/hpfs/dir.c 2003-12-13 16:52:17.000000000 +0100
@@ -65,6 +65,8 @@
int c1, c2 = 0;
int ret = 0;
+ lock_kernel();
+
if (hpfs_sb(inode->i_sb)->sb_chk) {
if (hpfs_chk_sectors(inode->i_sb, inode->i_ino, 1, "dir_fnode")) {
ret = -EFSERROR;
reply other threads:[~2003-12-13 18:28 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=20031213193458.0e4a4b97.l.s.r@web.de \
--to=l.s.r@web.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mikulas@artax.karlin.mff.cuni.cz \
--cc=tam@gmx.de \
--cc=torvalds@osdl.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
all inboxes | Powered by JetHome®