Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp113670imm; Thu, 2 Aug 2018 15:05:05 -0700 (PDT) X-Google-Smtp-Source: AAOMgpceogMCPuDxEvhx63zhHSqkMI/IaDTT/owT3Uzp9IqvvmUrkKNE+68rAn4udDl14lrCjcFd X-Received: by 2002:a63:2404:: with SMTP id k4-v6mr1091318pgk.191.1533247505112; Thu, 02 Aug 2018 15:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533247505; cv=none; d=google.com; s=arc-20160816; b=vlFIZIEwClsydPW0pqfoiHe3T19hdje7b5/vcL91dE1vakD+bbb67wWKS7fltd5atB Kz6jAc/foa85WjWbYi72kIwv98jU6Jhbtfvn/XD70wr3UhZyaL96EYIBP6sDLlNaU6M2 EMG/xB8D7o92gPk9pJYXo9VeV3MpCC6AYgVCjY2iPv5wj0JZXrZFMMXLthlGuX0weRmR uLkg60BWZTU/XNEg8r1D6GdVGW28twYQ1w9nFla/Hreah8fKR36gU+gswfpHu8+/C/kL W4JEHUNICrHvgWbv+0qewuC33Vnerfl2VB71vbDAOXSUlIDwM7iMkvqwp18vOJmEJ1bG KMaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=83Vw2z0zzE7Mog5zQT9m1gMkbSW4DQGWUbK0tuxbK+4=; b=sM26ADb1bpp9dXq0L7Bny1tu67pm/4un3oxQSGX43cNDuu6ogtxzcH2kAMgI59bci9 ZWolrg9Wn39OTwx6uVhoTBNY1T+tZ/lzpNAlrq+aPE5C16mKmfaKI1/uCoLMEoEVRand noF1gamNAWdgN3T9G6JYnTV9xE6xwUvDJPAY7nUtUMP/SrIk+ZJW1DrtT9MuzPtRQFXt GC2Syz4Gt2ywTU8ScSAxlzrfBPzCjcofIF83mJMF8pQw3DxT3ezj0yH0NTVYYdbG8/AQ 97UgnRZBHYCs3OS/DuZ4ngE1EPkkYn5ZAbYmSlduys6HqDaZgHo8Loa9GnC0L2BBWJh+ pb7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7-v6si2408785pll.142.2018.08.02.15.04.49; Thu, 02 Aug 2018 15:05:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731999AbeHBX5G (ORCPT + 99 others); Thu, 2 Aug 2018 19:57:06 -0400 Received: from nautica.notk.org ([91.121.71.147]:35840 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727122AbeHBX5G (ORCPT ); Thu, 2 Aug 2018 19:57:06 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id B3098C009; Fri, 3 Aug 2018 00:03:58 +0200 (CEST) Date: Fri, 3 Aug 2018 00:03:43 +0200 From: Dominique Martinet To: Greg Kurz Cc: v9fs-developer@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Dominique Martinet , Matthew Wilcox , Jun Piao Subject: Re: [PATCH v2 1/2] net/9p: embed fcall in req to round down buffer allocs Message-ID: <20180802220343.GB14773@nautica> References: <1532943263-24378-1-git-send-email-asmadeus@codewreck.org> <1533177452-2165-1-git-send-email-asmadeus@codewreck.org> <20180802112301.6b581f1c@bahia.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180802112301.6b581f1c@bahia.lan> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Greg Kurz wrote on Thu, Aug 02, 2018: > > @@ -443,9 +444,9 @@ static int rdma_request(struct p9_client *client, struct p9_req_t *req) > > **/ > > if (unlikely(atomic_read(&rdma->excess_rc) > 0)) { > > if ((atomic_sub_return(1, &rdma->excess_rc) >= 0)) { > > - /* Got one ! */ > > - kfree(req->rc); > > - req->rc = NULL; > > + /* Got one! */ > > + kfree(req->rc.sdata); > > Shouldn't this be p9_fcall_fini(&req->rc) ? Right, I failed at bookkeeping, I changed that in the next patch but it should have been done now. Will add p9_fcall_fini to headers/export in this patch instead of the next > The rest looks good, so, with that fixed, you can add: > > Reviewed-by: Greg Kurz Thanks! -- Dominique