From 6f9e9dea54af3afd907c4483b941290d0010ba19 Mon Sep 17 00:00:00 2001 From: Bart vdr. Meulen Date: Fri, 16 Mar 2012 13:55:19 +0100 Subject: [PATCH] accessfs: clear I_NEW flag after initialising inode When the inode has been initialised the I_NEW flag should be cleared with a call to unlock_new_inode. Otherwise the inodes will still be marked as busy when umounting the filesystem during shutdown/umount Signed-off-by: Bart vdr. Meulen --- fs/accessfs/inode.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/accessfs/inode.c b/fs/accessfs/inode.c index a2247e2..5b550f2 100644 --- a/fs/accessfs/inode.c +++ b/fs/accessfs/inode.c @@ -295,6 +295,7 @@ static struct inode *accessfs_iget(struct super_block *sb, unsigned long ino) break; } } + unlock_new_inode(inode); mutex_unlock(&accessfs_sem); return inode; -- 1.7.0.4