patch-2.4.0-test4 linux/fs/file_table.c

Next file: linux/fs/hpfs/dir.c
Previous file: linux/fs/ext2/file.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test3/linux/fs/file_table.c linux/fs/file_table.c
@@ -124,11 +124,8 @@
 	struct vfsmount * mnt = filp->f_vfsmnt;
 	struct inode * inode = dentry->d_inode;
 
-	if (filp->f_op && filp->f_op->release) {
-		lock_kernel();
+	if (filp->f_op && filp->f_op->release)
 		filp->f_op->release(inode, filp);
-		unlock_kernel();
-	}
 	fops_put(filp->f_op);
 	filp->f_dentry = NULL;
 	filp->f_vfsmnt = NULL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)