aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_super.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>2010-03-29 19:13:59 -0400
committerEric Van Hensbergen <ericvh@gmail.com>2010-04-05 11:37:36 -0400
commit6d96d3ab7aea5f0e75205a0c97f8d1fdf82c5287 (patch)
treea4dfa0472e2e670de1da7e7c0905da12d4608ab4 /fs/9p/vfs_super.c
parentd994f4058d9f9be7e44529b55fc6be6552901ead (diff)
9p: Make sure we are able to clunk the cached fid on umount
dcache prune happen on umount. So we cannot mark the client satus disconnect. That will prevent a 9p call to the server Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/vfs_super.c')
-rw-r--r--fs/9p/vfs_super.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index 69357c0d9899..d1a3c809a291 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -193,6 +193,7 @@ static void v9fs_kill_super(struct super_block *s)
193 193
194 kill_anon_super(s); 194 kill_anon_super(s);
195 195
196 v9fs_session_cancel(v9ses);
196 v9fs_session_close(v9ses); 197 v9fs_session_close(v9ses);
197 kfree(v9ses); 198 kfree(v9ses);
198 s->s_fs_info = NULL; 199 s->s_fs_info = NULL;
@@ -205,7 +206,7 @@ v9fs_umount_begin(struct super_block *sb)
205 struct v9fs_session_info *v9ses; 206 struct v9fs_session_info *v9ses;
206 207
207 v9ses = sb->s_fs_info; 208 v9ses = sb->s_fs_info;
208 v9fs_session_cancel(v9ses); 209 v9fs_session_begin_cancel(v9ses);
209} 210}
210 211
211static const struct super_operations v9fs_super_ops = { 212static const struct super_operations v9fs_super_ops = {