aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/vfs_super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/9p/vfs_super.c')
-rw-r--r--fs/9p/vfs_super.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index ce0778acc90a..868f350b2c5f 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -257,10 +257,19 @@ static int v9fs_show_options(struct seq_file *m, struct vfsmount *mnt)
257 return 0; 257 return 0;
258} 258}
259 259
260static void
261v9fs_umount_begin(struct super_block *sb)
262{
263 struct v9fs_session_info *v9ses = sb->s_fs_info;
264
265 v9fs_session_cancel(v9ses);
266}
267
260static struct super_operations v9fs_super_ops = { 268static struct super_operations v9fs_super_ops = {
261 .statfs = simple_statfs, 269 .statfs = simple_statfs,
262 .clear_inode = v9fs_clear_inode, 270 .clear_inode = v9fs_clear_inode,
263 .show_options = v9fs_show_options, 271 .show_options = v9fs_show_options,
272 .umount_begin = v9fs_umount_begin,
264}; 273};
265 274
266struct file_system_type v9fs_fs_type = { 275struct file_system_type v9fs_fs_type = {