patch-2.1.110 linux/fs/nfs/inode.c
Next file: linux/fs/nfsd/vfs.c
Previous file: linux/fs/nfs/file.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Mon Jul 20 17:22:35 1998
- Orig file:
v2.1.109/linux/fs/nfs/inode.c
- Orig date:
Wed Jun 24 22:54:09 1998
diff -u --recursive --new-file v2.1.109/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -43,6 +43,7 @@
static void nfs_delete_inode(struct inode *);
static int nfs_notify_change(struct dentry *, struct iattr *);
static void nfs_put_super(struct super_block *);
+static void nfs_umount_begin(struct super_block *);
static int nfs_statfs(struct super_block *, struct statfs *, int);
static struct super_operations nfs_sops = {
@@ -54,7 +55,9 @@
nfs_put_super, /* put superblock */
NULL, /* write superblock */
nfs_statfs, /* stat filesystem */
- NULL
+ NULL, /* no remount */
+ NULL, /* no clear inode */
+ nfs_umount_begin /* umount attempt begin */
};
struct rpc_stat nfs_rpcstat = { &nfs_program };
@@ -140,6 +143,17 @@
kfree(server->hostname);
MOD_DEC_USE_COUNT;
+}
+
+void
+nfs_umount_begin(struct super_block *sb)
+{
+ struct nfs_server *server = &sb->u.nfs_sb.s_server;
+ struct rpc_clnt *rpc;
+
+ /* -EIO all pending I/O */
+ if ((rpc = server->client) != NULL)
+ rpc_killall_tasks(rpc);
}
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov