[PATCH 1/5 -tip] 9p: umount_begin BKL pushdown

Alessio Igor Bogani
2009-04-23T19:12:51Z

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
---
fs/9p/vfs_super.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index 5f8ab8a..2f64462 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -37,6 +37,7 @@
#include <linux/mount.h>
#include <linux/idr.h>
#include <linux/sched.h>
+#include <linux/smp_lock.h>
#include <net/9p/9p.h>
#include <net/9p/client.h>

@@ -232,7 +233,9 @@ v9fs_umount_begin(struct super_block *sb)
{
struct v9fs_session_info *v9ses = sb->s_fs_info;

+ lock_kernel();
v9fs_session_cancel(v9ses);
+ unlock_kernel();
}

static const struct super_operations v9fs_super_ops = {
--
1.6.0.4