aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-02-13 01:43:25 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-02-13 01:43:25 -0500
commitd9bc125caf592b7d081021f32ce5b717efdf70c8 (patch)
tree263b7066ba22ddce21db610c0300f6eaac6f2064 /net/sunrpc/clnt.c
parent43d78ef2ba5bec26d0315859e8324bfc0be23766 (diff)
parentec2f9d1331f658433411c58077871e1eef4ee1b4 (diff)
Merge branch 'master' of /home/trondmy/kernel/linux-2.6/
Conflicts: net/sunrpc/auth_gss/gss_krb5_crypto.c net/sunrpc/auth_gss/gss_spkm3_token.c net/sunrpc/clnt.c Merge with mainline and fix conflicts.
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index c21aa0a7f770..6d7221fe990a 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -416,7 +416,7 @@ struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *old,
416 rpc_shutdown_client(clnt); 416 rpc_shutdown_client(clnt);
417 clnt = ERR_PTR(err); 417 clnt = ERR_PTR(err);
418 } 418 }
419out: 419out:
420 return clnt; 420 return clnt;
421} 421}
422 422
@@ -437,7 +437,7 @@ static const struct rpc_call_ops rpc_default_ops = {
437 * sleeps on RPC calls 437 * sleeps on RPC calls
438 */ 438 */
439#define RPC_INTR_SIGNALS (sigmask(SIGHUP) | sigmask(SIGINT) | sigmask(SIGQUIT) | sigmask(SIGTERM)) 439#define RPC_INTR_SIGNALS (sigmask(SIGHUP) | sigmask(SIGINT) | sigmask(SIGQUIT) | sigmask(SIGTERM))
440 440
441static void rpc_save_sigmask(sigset_t *oldset, int intr) 441static void rpc_save_sigmask(sigset_t *oldset, int intr)
442{ 442{
443 unsigned long sigallow = sigmask(SIGKILL); 443 unsigned long sigallow = sigmask(SIGKILL);
@@ -480,7 +480,7 @@ int rpc_call_sync(struct rpc_clnt *clnt, struct rpc_message *msg, int flags)
480 int status; 480 int status;
481 481
482 /* If this client is slain all further I/O fails */ 482 /* If this client is slain all further I/O fails */
483 if (clnt->cl_dead) 483 if (clnt->cl_dead)
484 return -EIO; 484 return -EIO;
485 485
486 BUG_ON(flags & RPC_TASK_ASYNC); 486 BUG_ON(flags & RPC_TASK_ASYNC);
@@ -517,7 +517,7 @@ rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg, int flags,
517 517
518 /* If this client is slain all further I/O fails */ 518 /* If this client is slain all further I/O fails */
519 status = -EIO; 519 status = -EIO;
520 if (clnt->cl_dead) 520 if (clnt->cl_dead)
521 goto out_release; 521 goto out_release;
522 522
523 flags |= RPC_TASK_ASYNC; 523 flags |= RPC_TASK_ASYNC;
@@ -528,7 +528,7 @@ rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg, int flags,
528 goto out_release; 528 goto out_release;
529 529
530 /* Mask signals on GSS_AUTH upcalls */ 530 /* Mask signals on GSS_AUTH upcalls */
531 rpc_task_sigmask(task, &oldset); 531 rpc_task_sigmask(task, &oldset);
532 532
533 rpc_call_setup(task, msg, 0); 533 rpc_call_setup(task, msg, 0);
534 534
@@ -539,7 +539,7 @@ rpc_call_async(struct rpc_clnt *clnt, struct rpc_message *msg, int flags,
539 else 539 else
540 rpc_put_task(task); 540 rpc_put_task(task);
541 541
542 rpc_restore_sigmask(&oldset); 542 rpc_restore_sigmask(&oldset);
543 return status; 543 return status;
544out_release: 544out_release:
545 rpc_release_calldata(tk_ops, data); 545 rpc_release_calldata(tk_ops, data);