From: Aneesh Kumar K.V Date: Mon, 20 May 2013 06:50:55 +0000 (+0530) Subject: net/9p: Use virtio transpart as the default transport X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=535bcd3c4e8d09a62a89b2f1f3b3a80e1b3fce4b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git net/9p: Use virtio transpart as the default transport 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 Signed-off-by: Eric Van Hensbergen --- diff --git a/net/9p/client.c b/net/9p/client.c index 812a4cdf5302..5e94dabddb68 100644 --- 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();