patch-2.4.4 linux/fs/nfs/flushd.c

Next file: linux/fs/nfs/inode.c
Previous file: linux/fs/ncpfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/fs/nfs/flushd.c linux/fs/nfs/flushd.c
@@ -177,14 +177,14 @@
  out:
 }
 
+/* Protect me using the BKL */
 void inode_remove_flushd(struct inode *inode)
 {
 	struct nfs_reqlist	*cache = NFS_REQUESTLIST(inode);
 	struct inode		**q;
 
-	lock_kernel();
 	if (!(NFS_FLAGS(inode) & NFS_INO_FLUSH))
-		goto out;
+		return;
 
 	q = &cache->inodes;
 	while (*q && *q != inode)
@@ -194,8 +194,6 @@
 		NFS_FLAGS(inode) &= ~NFS_INO_FLUSH;
 		iput(inode);
 	}
- out:
-	unlock_kernel();
 }
 
 void inode_schedule_scan(struct inode *inode, unsigned long time)

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