Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fc6ae3cf482c385a6fe87ba119d399bb85aa670b
Commit:     fc6ae3cf482c385a6fe87ba119d399bb85aa670b
Parent:     83d93f2229348837bf988a1048f7f38789474471
Author:     Trond Myklebust <[EMAIL PROTECTED]>
AuthorDate: Tue Jun 5 19:13:47 2007 -0400
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Tue Jul 10 23:40:25 2007 -0400

    NFS: Re-enable forced umounts
    
    They disappeared some time around 2.6.18.
    
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 fs/nfs/super.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/fs/nfs/super.c b/fs/nfs/super.c
index ca20d3c..14c7923 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -430,7 +430,20 @@ static int nfs_show_stats(struct seq_file *m, struct 
vfsmount *mnt)
  */
 static void nfs_umount_begin(struct vfsmount *vfsmnt, int flags)
 {
+       struct nfs_server *server = NFS_SB(vfsmnt->mnt_sb);
+       struct rpc_clnt *rpc;
+
        shrink_submounts(vfsmnt, &nfs_automount_list);
+
+       if (!(flags & MNT_FORCE))
+               return;
+       /* -EIO all pending I/O */
+       rpc = server->client_acl;
+       if (!IS_ERR(rpc))
+               rpc_killall_tasks(rpc);
+       rpc = server->client;
+       if (!IS_ERR(rpc))
+               rpc_killall_tasks(rpc);
 }
 
 /*
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to