mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH][2.6] HPFS: missing lock_kernel() in hpfs_readdir()
@ 2003-12-13 18:34 Rene Scharfe
  0 siblings, 0 replies; only message in thread
From: Rene Scharfe @ 2003-12-13 18:34 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel, Mikulas Patocka, Timo Maier

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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-13 18:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-13 18:34 [PATCH][2.6] HPFS: missing lock_kernel() in hpfs_readdir() Rene Scharfe

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®