projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
095e799
)
net/9p: Use virtio transpart as the default transport
author
Aneesh Kumar K.V
<aneesh.kumar@linux.vnet.ibm.com>
Mon, 20 May 2013 06:50:55 +0000
(12:20 +0530)
committer
Eric Van Hensbergen
<ericvh@gmail.com>
Tue, 28 May 2013 14:28:42 +0000
(09:28 -0500)
Make the default 9p experience better by defaulting to virtio transport if present.
These days most of the users are using 9p in a virtualized setup
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
net/9p/client.c
patch
|
blob
|
blame
|
history
diff --git
a/net/9p/client.c
b/net/9p/client.c
index 812a4cdf53023639976a5b4454fa7c259ec17e07..5e94dabddb688098b65753a1045acb636f2af191 100644
(file)
--- a/
net/9p/client.c
+++ b/
net/9p/client.c
@@
-1014,6
+1014,9
@@
struct p9_client *p9_client_create(const char *dev_name, char *options)
if (err < 0)
goto destroy_tagpool;
+ if (!clnt->trans_mod)
+ clnt->trans_mod = v9fs_get_trans_by_name("virtio");
+
if (!clnt->trans_mod)
clnt->trans_mod = v9fs_get_default_trans();