The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] Set MS_ACTIVE in isofs_fill_super()
@ 2005-03-30 20:09 Russ Weight
  2005-03-30 20:39 ` Andrew Morton
  0 siblings, 1 reply; 6+ messages in thread
From: Russ Weight @ 2005-03-30 20:09 UTC (permalink / raw)
  To: lkml; +Cc: Andrew Morton

This patch sets the MS_ACTIVE bit in isofs_fill_super() prior to calling
iget() or iput(). This eliminates a race condition between mount
(for isofs) and kswapd that results in a system panic.

Signed-off-by: Russ Weight <rweight@us.ibm.com>

--- linux-2.6.12-rc1/fs/isofs/inode.c	2005-03-17 17:34:36.000000000
-0800
+++ linux-2.6.12-rc1-isofsfix/fs/isofs/inode.c	2005-03-22
15:29:51.945607217 -0800
@@ -820,6 +820,7 @@
 	 * the s_rock flag. Once we have the final s_rock value,
 	 * we then decide whether to use the Joliet descriptor.
 	 */
+	s->s_flags |= MS_ACTIVE;
 	inode = isofs_iget(s, sbi->s_firstdatazone, 0);
 
 	/*
@@ -909,6 +910,7 @@
 		kfree(opt.iocharset);
 	kfree(sbi);
 	s->s_fs_info = NULL;
+	s->s_flags &= ~MS_ACTIVE;
 	return -EINVAL;
 }
 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-04-01 15:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-30 20:09 [PATCH] Set MS_ACTIVE in isofs_fill_super() Russ Weight
2005-03-30 20:39 ` Andrew Morton
2005-03-30 22:20   ` Jan Harkes
2005-04-01 15:14     ` Jan Kara
2005-03-30 22:26   ` Russ Weight
2005-03-30 23:18     ` Jan Harkes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox