Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2722409imm; Thu, 9 Aug 2018 19:20:52 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwchz3h8b68l5EX6jBkFA3S4wiQVATXTsoosBlN8y3XOklwApZW+w5XEcjIIDj1cunb8df7 X-Received: by 2002:a62:d8c:: with SMTP id 12-v6mr4950615pfn.202.1533867652794; Thu, 09 Aug 2018 19:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533867652; cv=none; d=google.com; s=arc-20160816; b=t+ERTtm3IzCdBunZV5LrOBXc9SPo/ERHGAVmhXP5suj04bokYMYylpsp5NGR3aKToP Gj0vqudV8SJksTlxpnsgEn9VKX5Hb7M3vFNVY9Ur3oMjxyMxQV1Jr7hHgujdvc/RcCo6 KtzG0zy9Ng8DH5WPLjyu5YczHFoWGomf1LQgU2UfILNqIYzz1cy9Pe072wEEqOVAkpPS F3xZNoQJCpuVVJrrsQDDJ2hqg+5F4MOqkXOAdeZCWdTnGFCBaEnEvVcOKepDdPi9plJJ rYIsocEiYh3tdvJjyZ+wy3wOGTV4L0AUviwG9t9Deowk2+9ULQZMvBylsjYwyyyU2m6e 7WyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=QGwzIvVI/qu7vwAuLk6RcAhkkXj8ornuXVrKC6XjZyQ=; b=vBqegHWLG7m+xuXTdi8Sgm05F4oVqPODoWYqI6B7PH7zpa/Og6hZmstsQmxBMhKztk f9q+ajSH78UxGw/i5ab/NWoGqI3ZEmhJWWLbumrmnv9YqV3SUV4usr00Ip09t1nrN3HL O1ipfJtY51p1QjxfyeKpkOa1fLvli3VNejG4DsY3Tv3ujMQTUMcOSBS2LXGpeYwA9UsC ofahkdZX/oFLy/NvK4Aem7wojxTDP6GbAB90tC95MmA1Y6yp+1p9cjcxZ3cWSn0sxUv9 SvuYsI+GKtReWVT9NLUwiLuVS/19I48ZpahuSUnMHkF4OhjHU3ju+JNtM4oSxjs3jjN5 po1g== 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 l33-v6si8715049pgm.350.2018.08.09.19.20.36; Thu, 09 Aug 2018 19:20:52 -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 S1726420AbeHJERX (ORCPT + 99 others); Fri, 10 Aug 2018 00:17:23 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:54723 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725198AbeHJERX (ORCPT ); Fri, 10 Aug 2018 00:17:23 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 46EF396E17439; Fri, 10 Aug 2018 09:49:43 +0800 (CST) Received: from [10.177.253.249] (10.177.253.249) by smtp.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.399.0; Fri, 10 Aug 2018 09:49:41 +0800 Subject: Re: [PATCH v3 2/2] net/9p: add a per-client fcall kmem_cache To: Dominique Martinet References: <1533177452-2165-1-git-send-email-asmadeus@codewreck.org> <1533825236-22896-1-git-send-email-asmadeus@codewreck.org> <1533825236-22896-2-git-send-email-asmadeus@codewreck.org> <5B6CE900.1010103@huawei.com> <20180810014147.GB14699@nautica> CC: , Dominique Martinet , , , Matthew Wilcox , "Greg Kurz" From: piaojun Message-ID: <5B6CEF2C.2070606@huawei.com> Date: Fri, 10 Aug 2018 09:49:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20180810014147.GB14699@nautica> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.253.249] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for clearing my doubt, and you can add: Acked-by: Jun Piao On 2018/8/10 9:41, Dominique Martinet wrote: > piaojun wrote on Fri, Aug 10, 2018: >> Could you help paste the test result of before-after-applied this patch in >> comment? And please see my comments below. > > Thanks the the review, do you mean the commit message? > > I'll add the summary I wrote in reply to your question a few mails > before. > Yes, I mean the commit message. > >>> diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h >>> index e23896116d9a..645266b74652 100644 >>> --- a/include/net/9p/9p.h >>> +++ b/include/net/9p/9p.h >>> @@ -336,6 +336,9 @@ enum p9_qid_t { >>> #define P9_NOFID (u32)(~0) >>> #define P9_MAXWELEM 16 >>> >>> +/* Minimal header size: len + id + tag */ >> >> Here should be 'size + id + tag'. > > hm I didn't want to repeat size, but I guess people do refer to that > field as size. > I'll actually rewrite it as: > Minimal header size: size[4] type[1] tag[2] > It looks better. >>> + kmem_cache_destroy(clnt->fcall_cache); >> >> I'm afraid that we should check NULL for clnt->fcall_cache. > > kmem_cache_destroy() in mm/slab_common.c does the null check for us: > ------ > void kmem_cache_destroy(struct kmem_cache *s) > { > int err; > > if (unlikely(!s)) > return; > ------ > OK, it makes sense.