SUNRPC: The function rpc_restart_call() should return success/failure
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 31 Jul 2010 18:29:07 +0000 (14:29 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 4 Aug 2010 02:06:44 +0000 (22:06 -0400)
commitf1f88fc7e818c6678c6799a2edb8f1aeccc124aa
treea5aec7e7e522500df78b5cbf1f2ce430462552e2
parenta6f03393ec86fd25523c79497a9a773bda170d1d
SUNRPC: The function rpc_restart_call() should return success/failure

Both rpc_restart_call_prepare() and rpc_restart_call() test for the
RPC_TASK_KILLED flag, and fail to restart the RPC call if that flag is set.

This patch allows callers to know whether or not the restart was
successful, so that they can perform cleanups etc in case of failure.

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