]> rtime.felk.cvut.cz Git - linux-imx.git/commit
SUNRPC: Report network/connection errors correctly for SOFTCONN rpc tasks
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 4 Mar 2013 22:29:33 +0000 (17:29 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 25 Mar 2013 16:04:10 +0000 (12:04 -0400)
commit3ed5e2a2c394df4e03a680842c2d07a8680f133b
tree83050928d116f2079147f6de8c77860a4ec76f27
parent1166fde6a923c30f4351515b6a9a1efc513e7d00
SUNRPC: Report network/connection errors correctly for SOFTCONN rpc tasks

In the case of a SOFTCONN rpc task, we really want to ensure that it
reports errors like ENETUNREACH back to the caller. Currently, only
some of these errors are being reported back (connect errors are not),
and they are being converted by the RPC layer into EIO.

Reported-by: Jan Engelhardt <jengelh@inai.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/clnt.c
net/sunrpc/xprtsock.c