nfsroot: set tcp as the default transport protocol
authorLiwei Song <liwei.song@windriver.com>
Wed, 25 Mar 2020 03:50:13 +0000 (11:50 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 25 Mar 2020 12:45:47 +0000 (08:45 -0400)
commit89c8023fd46167a41246a56b31d1b3c9a20b6970
treed1de6fc7bc59a8f039764c5010ff9d282cae4b7f
parent8605cf0e852af3b2c771c18417499dc4ceed03d5
nfsroot: set tcp as the default transport protocol

UDP is disabled by default in commit b24ee6c64ca7 ("NFS: allow
deprecation of NFS UDP protocol"), but the default mount options
is still udp, change it to tcp to avoid the "Unsupported transport
protocol udp" error if no protocol is specified when mount nfs.

Fixes: b24ee6c64ca7 ("NFS: allow deprecation of NFS UDP protocol")
Signed-off-by: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfsroot.c