nfsv3: Make v3 mounts fail with ETIMEDOUTs instead EIO on mountd timeouts
authorScott Mayhew <smayhew@redhat.com>
Tue, 16 Oct 2012 17:22:19 +0000 (13:22 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:47:05 +0000 (16:47 +0000)
commit305180b3aff6c202cb4f81fc3a28d2ad11769d2b
tree662bf14fdfe1186f7199488ce75f288d5d4cb8b9
parent0a616792682920177b89dd9a01f96240020a6472
nfsv3: Make v3 mounts fail with ETIMEDOUTs instead EIO on mountd timeouts

commit acce94e68a0f346115fd41cdc298197d2d5a59ad upstream.

In very busy v3 environment, rpc.mountd can respond to the NULL
procedure but not the MNT procedure in a timely manner causing
the MNT procedure to time out. The problem is the mount system
call returns EIO which causes the mount to fail, instead of
ETIMEDOUT, which would cause the mount to be retried.

This patch sets the RPC_TASK_SOFT|RPC_TASK_TIMEOUT flags to
the rpc_call_sync() call in nfs_mount() which causes
ETIMEDOUT to be returned on timed out connections.

Signed-off-by: Steve Dickson <steved@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/nfs/mount_clnt.c