[PATCH] Set MS_ACTIVE in isofs_fill_super()
From: Russ Weight (rweight_at_us.ibm.com)
Date: 03/30/05
- Previous message: Wiktor: "Re: [RFD] 'nice' attribute for executable files"
- Next in thread: Andrew Morton: "Re: [PATCH] Set MS_ACTIVE in isofs_fill_super()"
- Reply: Andrew Morton: "Re: [PATCH] Set MS_ACTIVE in isofs_fill_super()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: lkml <linux-kernel@vger.kernel.org> Date: Wed, 30 Mar 2005 12:09:52 -0800
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;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Wiktor: "Re: [RFD] 'nice' attribute for executable files"
- Next in thread: Andrew Morton: "Re: [PATCH] Set MS_ACTIVE in isofs_fill_super()"
- Reply: Andrew Morton: "Re: [PATCH] Set MS_ACTIVE in isofs_fill_super()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|