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)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 8 Mar 2010 19:05:57 +0000 (14:05 -0500)
commit5fe46e9d733f19a880ef7e516002bd4c2b833e14
treee63ececb8fa5100b3f2514b0d2e9702086ccd101
parent25cf84cf377c0aae5dbcf937ea89bc7893db5176
rpc client can not deal with ENOSOCK, so translate it into ENOCONN

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>
net/sunrpc/xprtsock.c