27 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
29 #include <linux/module.h>
30 #include <linux/errno.h>
31 #include <linux/sched.h>
38 #include <linux/list.h>
41 #ifdef CONFIG_NET_9P_DEBUG
42 unsigned int p9_debug_level = 0;
53 if ((p9_debug_level & level) != level)
86 spin_lock(&v9fs_trans_lock);
88 spin_unlock(&v9fs_trans_lock);
99 spin_lock(&v9fs_trans_lock);
100 list_del_init(&m->
list);
101 spin_unlock(&v9fs_trans_lock);
114 spin_lock(&v9fs_trans_lock);
118 try_module_get(t->
owner)) {
123 spin_unlock(&v9fs_trans_lock);
137 spin_lock(&v9fs_trans_lock);
140 if (t->
def && try_module_get(t->
owner)) {
147 if (try_module_get(t->
owner)) {
152 spin_unlock(&v9fs_trans_lock);
165 module_put(m->
owner);
172 static int __init init_p9(
void)
177 pr_info(
"Installing 9P2000 support\n");
188 static void __exit exit_p9(
void)
190 pr_info(
"Unloading 9P2000 support\n");