Message ID | 20180917130335.112832-3-trond.myklebust@hammerspace.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-nfs-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5193E15A6 for <patchwork-linux-nfs@patchwork.kernel.org>; Mon, 17 Sep 2018 13:04:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4612529B63 for <patchwork-linux-nfs@patchwork.kernel.org>; Mon, 17 Sep 2018 13:04:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A90B29B87; Mon, 17 Sep 2018 13:04:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F4F5299A8 for <patchwork-linux-nfs@patchwork.kernel.org>; Mon, 17 Sep 2018 13:04:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727806AbeIQSbP (ORCPT <rfc822;patchwork-linux-nfs@patchwork.kernel.org>); Mon, 17 Sep 2018 14:31:15 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:35294 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726889AbeIQSbP (ORCPT <rfc822;linux-nfs@vger.kernel.org>); Mon, 17 Sep 2018 14:31:15 -0400 Received: by mail-qt0-f193.google.com with SMTP id j7-v6so15155481qtp.2 for <linux-nfs@vger.kernel.org>; Mon, 17 Sep 2018 06:04:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=wB1vpq+Hf5tAhc6xSDBsSka9UzF0BZ7hMgl4DfIKsP0=; b=oHzMQerYnWmAAjy0eWz1fL2ax4eqfM5sagWjB2iKRwJjBiDZo7drftEVyrWhZSQ0Le 2aPfBlicNoFF17sEYDsnEUEfrnwiKXJVh8x/1Z4VFhmdX2srHbgGWbDi2uR8+1LxANOA pS2EKeCfo+1ntWTQY6X8GBgcB5bxU4lgIn0bZZvfPO3QkGjfubnYFxJY0Q2YmLAuZvbj 7Gq4Ri5kGx/D9MazRhvyFKW94DUrTcyOIX32/pOlYXdEfxcy8kMnl+FAnx3A+2TiHKJ0 XdS1ELKVLRxPtcCA5tTBi8l7PzkaLvZK3wa6VY3Nathx7NIwJawVotvT/V4RZKS1WD4g IvwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wB1vpq+Hf5tAhc6xSDBsSka9UzF0BZ7hMgl4DfIKsP0=; b=OvpD2UWRN1SUs/eEPohvBvHVBphNCbhG8KK5TjXZw5tEE+yn8vWT+0rktl5wgaMjqt MCoWV8TFshcebhz/nxZOJAeqLP/SMs4dDFIkh1WR2OUpRloVj1Slz6aDhpH31cAx0G0T 3X73ItKVjYid8I9KEBrpDuN3RmedOOCSVbQkbmgBzWgZhV1EiFFO88eFttr7jHtNC13U rPhAWqAaNxXl4shIV0CxxKjTLYpTOUys5nNka39/dwQL31ouabaVaOQDkzWw0OOaAvi4 dnXfZC97uE8zCGOJdqEYizAbIHbKExub43cmAfz6oSM+PUK1/FhzefrJ6slkevapkfm1 CdMQ== X-Gm-Message-State: APzg51DemcbVnxZSlYQ0pQ9VllNGT3Wz8QWTb0hl4mM9DJaJwfEJ/iTx g1o3NrfEtuq5VlukIhewKG/LLc8= X-Google-Smtp-Source: ANB0Vda43UUHiW6xMwMDdwSFJ236Rp1FSdzriLkLtIh39lV6tCPS8+odFo5hDsJpXyMjqywTKyc/8A== X-Received: by 2002:a0c:e105:: with SMTP id w5-v6mr17521594qvk.174.1537189439769; Mon, 17 Sep 2018 06:03:59 -0700 (PDT) Received: from leira.trondhjem.org.localdomain ([66.187.232.65]) by smtp.gmail.com with ESMTPSA id q1-v6sm10499607qkl.31.2018.09.17.06.03.58 for <linux-nfs@vger.kernel.org> (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 17 Sep 2018 06:03:58 -0700 (PDT) From: Trond Myklebust <trondmy@gmail.com> X-Google-Original-From: Trond Myklebust <trond.myklebust@hammerspace.com> To: linux-nfs@vger.kernel.org Subject: [PATCH v3 02/44] SUNRPC: If there is no reply expected, bail early from call_decode Date: Mon, 17 Sep 2018 09:02:53 -0400 Message-Id: <20180917130335.112832-3-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180917130335.112832-2-trond.myklebust@hammerspace.com> References: <20180917130335.112832-1-trond.myklebust@hammerspace.com> <20180917130335.112832-2-trond.myklebust@hammerspace.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-nfs.vger.kernel.org> X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Convert RPC client transmission to a queued model
|
expand
|
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c index bc9d020bf71f..4f1ec8013332 100644 --- a/net/sunrpc/clnt.c +++ b/net/sunrpc/clnt.c @@ -2260,6 +2260,11 @@ call_decode(struct rpc_task *task) dprint_status(task); + if (!decode) { + task->tk_action = rpc_exit_task; + return; + } + if (task->tk_flags & RPC_CALL_MAJORSEEN) { if (clnt->cl_chatty) { printk(KERN_NOTICE "%s: server %s OK\n", @@ -2297,13 +2302,11 @@ call_decode(struct rpc_task *task) goto out_retry; return; } - task->tk_action = rpc_exit_task; - if (decode) { - task->tk_status = rpcauth_unwrap_resp(task, decode, req, p, - task->tk_msg.rpc_resp); - } + task->tk_status = rpcauth_unwrap_resp(task, decode, req, p, + task->tk_msg.rpc_resp); + dprintk("RPC: %5u call_decode result %d\n", task->tk_pid, task->tk_status); return;
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> --- net/sunrpc/clnt.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)