]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: Allow RPC calls to return ETIMEDOUT instead of EIO
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 24 Apr 2011 18:28:45 +0000 (14:28 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 24 Apr 2011 18:28:45 +0000 (14:28 -0400)
commit9271aa64b1199822491bc564dbf6a11ed4a840e8
tree1a8a6d056047135108ffc8ea311ccd80d1fd28fd
parentcbbe8566540e0b498860b41cd1424aea87635764
SUNRPC: Allow RPC calls to return ETIMEDOUT instead of EIO

On occasion, it is useful for the NFS layer to distinguish between
soft timeouts and other EIO errors due to (say) encoding errors,
or authentication errors.

The following patch ensures that the default behaviour of the RPC
layer remains to return EIO on soft timeouts (until we have
audited all the callers).

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/sched.h
net/sunrpc/clnt.c