]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
rpc client can not deal with ENOSOCK, so translate it into ENOCONN
authorBian Naimeng <biannm@cn.fujitsu.com>
Mon, 8 Mar 2010 06:49:01 +0000 (14:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Feb 2012 19:28:49 +0000 (11:28 -0800)
commit607ca4f51d6c4e7bec6d78f0a211476dae5552fc
tree1c51586e62d0cfd2d1c14fdd05959a17dc9f0e24
parent3f81517baeb07ebfbbf9f1d73adc106a12e5cb3e
rpc client can not deal with ENOSOCK, so translate it into ENOCONN

commit 5fe46e9d733f19a880ef7e516002bd4c2b833e14 upstream.

If NFSv4 client send a request before connect, or the old connection was broken
because a ETIMEOUT error catched by call_status, ->send_request will return
ENOSOCK, but rpc layer can not deal with it, so make sure ->send_request can
translate ENOSOCK into ENOCONN.

Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/xprtsock.c