Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=34f5b4662bf4b54f22b32ce76ce70eccd7ebc68a
Commit:     34f5b4662bf4b54f22b32ce76ce70eccd7ebc68a
Parent:     afc881124b8aff83c7a28269ef9d9cfce543256c
Author:     Trond Myklebust <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 15 14:17:11 2008 -0500
Committer:  Trond Myklebust <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 02:06:10 2008 -0500

    SUNRPC: Don't bother changing the sigmask for asynchronous RPC calls
    
    The caller will never sleep in rpc_execute, so don't bother setting the
    sigmask.
    
    Signed-off-by: Trond Myklebust <[EMAIL PROTECTED]>
---
 net/sunrpc/clnt.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index e775ca7..924916c 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -579,9 +579,12 @@ struct rpc_task *rpc_run_task(const struct rpc_task_setup 
*task_setup_data)
        }
        atomic_inc(&task->tk_count);
        /* Mask signals on synchronous RPC calls and RPCSEC_GSS upcalls */
-       rpc_task_sigmask(task, &oldset);
-       rpc_execute(task);
-       rpc_restore_sigmask(&oldset);
+       if (!RPC_IS_ASYNC(task)) {
+               rpc_task_sigmask(task, &oldset);
+               rpc_execute(task);
+               rpc_restore_sigmask(&oldset);
+       } else
+               rpc_execute(task);
        ret = task;
 out:
        return ret;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to