diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2011-12-05 15:40:30 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-25 17:24:35 -0800 |
commit | 2dda99b3d5f3f6be05f0c9cc7cf0b05740e6e9f5 (patch) | |
tree | dd8953ed5c99fa33d2e14d17d042999792d960e6 /include/linux/apm_bios.h | |
parent | be2ef85142e6f00c7f6c8842d903701bdf88cb5c (diff) | |
download | kernel_samsung_smdk4412-2dda99b3d5f3f6be05f0c9cc7cf0b05740e6e9f5.zip kernel_samsung_smdk4412-2dda99b3d5f3f6be05f0c9cc7cf0b05740e6e9f5.tar.gz kernel_samsung_smdk4412-2dda99b3d5f3f6be05f0c9cc7cf0b05740e6e9f5.tar.bz2 |
NFS: Retry mounting NFSROOT
commit 43717c7daebf10b43f12e68512484b3095bb1ba5 upstream.
Lukas Razik <linux@razik.name> reports that on his SPARC system,
booting with an NFS root file system stopped working after commit
56463e50 "NFS: Use super.c for NFSROOT mount option parsing."
We found that the network switch to which Lukas' client was attached
was delaying access to the LAN after the client's NIC driver reported
that its link was up. The delay was longer than the timeouts used in
the NFS client during mounting.
NFSROOT worked for Lukas before commit 56463e50 because in those
kernels, the client's first operation was an rpcbind request to
determine which port the NFS server was listening on. When that
request failed after a long timeout, the client simply selected the
default NFS port (2049). By that time the switch was allowing access
to the LAN, and the mount succeeded.
Neither of these client behaviors is desirable, so reverting 56463e50
is really not a choice. Instead, introduce a mechanism that retries
the NFSROOT mount request several times. This is the same tactic that
normal user space NFS mounts employ to overcome server and network
delays.
Signed-off-by: Lukas Razik <linux@razik.name>
[ cel: match kernel coding style, add proper patch description ]
[ cel: add exponential back-off ]
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Tested-by: Lukas Razik <linux@razik.name>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/apm_bios.h')
0 files changed, 0 insertions, 0 deletions