Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp172904imw; Mon, 4 Jul 2022 07:11:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ukMlDpug+EUb2ysQdfPMoOdQ5bEbT+W1n5Fwzza33dfgfe76xtYSOi3Yo46tApx4kfWNMx X-Received: by 2002:a63:6b09:0:b0:40d:fd98:df9d with SMTP id g9-20020a636b09000000b0040dfd98df9dmr25958624pgc.555.1656943884215; Mon, 04 Jul 2022 07:11:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656943884; cv=none; d=google.com; s=arc-20160816; b=oq9kJxQa5VG1vy88/5bxRoVoBZZPZiDkQnBR7hEOXKcz9iqkhz4DLVVjPD27LThsqP WpWR8IuYIXY7oJfYUB7rI7Hp0KVq7WJ9W8usEMsp1f4qZ2/g2/HA9RL+dFvR+yk9NkzZ d9t4ZzhX40yqgFid2aHDrREM4xvUoNJglXr93pI5CB6I5ZtkTe/sVhjIcKEflQSvd14t VOT8c28fVPUspcOZNFf2P6SabDyytZsLP+YCCpFIAe61Hdj+iLOIlIeaLacRXkp0OV14 dsWFnpKY+1+MYt6zDTtJ3nkFEb6GuvfhgDfxKK6vwAaIsTG7wrViM5cWygjNIx0bePZK 8yLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZuSDtg49kLYvNdQDHtIgVQE+CHgjZQqn81sL6zDFFkE=; b=QGdLlsYEN8DtVWGRjAUF5qq4byKb3qzShdEeQuQ7m2vnibL7gKQjdSr+qWtdDKpu8u 2xIB/I2oKBrIhgHLgbCTgH0TMPZuekYYJyRGN+N6vDda8jeHz9rWV9x6DmhR1AyTsFjs Y+iYERXvj9siHhKWoZAcjm1WgK/PmT+DRUtxEHRp01/AqlMe67/ZgKfFh4bVPEXqTE6l BqnXbJjbuE/SlMjWjEGNNcFo+zi7XZMAa3RF2Bw3c71kaDLRPMgiwT64emsNk3IpNIa1 QOQrh2eZ0tdwIkaZX9Y7b1ivlMNIzTOKVOmlnqDwfevytI+f0rJzvoUzvidiWq5ZEWuk bkrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=L7MDoy5C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk6-20020a17090b4a0600b001eee0c42b51si24325219pjb.190.2022.07.04.07.11.10; Mon, 04 Jul 2022 07:11:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crudebyte.com header.s=kylie header.b=L7MDoy5C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=crudebyte.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231868AbiGDNjk (ORCPT + 99 others); Mon, 4 Jul 2022 09:39:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiGDNji (ORCPT ); Mon, 4 Jul 2022 09:39:38 -0400 Received: from kylie.crudebyte.com (kylie.crudebyte.com [5.189.157.229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B7F210A5 for ; Mon, 4 Jul 2022 06:39:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=kylie; h=Content-Type:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Content-ID:Content-Description; bh=ZuSDtg49kLYvNdQDHtIgVQE+CHgjZQqn81sL6zDFFkE=; b=L7MDoy5Caa1DaV9jEC4sssNR55 vd6teVzYL4swnRjjgHtw6RdXIKMGwGGKV9X0g5ICcu2FOHBYYmb9evyQf2jVTHo62BfnElY7YOv5Z hk55Do48g2mG50tu+Yc2VIjn9XvbmincbH7of5a4P4VR9qbYM7AM5ofFZZNV/UzdVABFs8dh9UADf Wz3OY1uJAeJ4V0ffusGiksd1sdvQu8yI7jRE9lihBcSMEoYdN7xKLNlWVkfoMb+uDpbKw2V74rlhY eL3DYWw1psC210QO/ztoFqLFsvd6msehn44JpOqAOGDKnwoDDUP4Z8aX1kPiVpRAk3E8vwEFR/vdl xYY32sC0Mo7U5bKDalvzGlovKa86R+WtxmAQlMx6jcGBGbSNUZ3bKYIuKvlx/CdYBw9FfjnXhK9+N 7S9bilgaaMkUKQSRupw34rS70Culbjuc+1d77p2c8r8IGJpAMliBRPebnTdf0ysRoIulE06TNlGst oLFdHEEG4kf2fhzWQFBwoGRCTRnevfFA7XscGWLEQQMKg9osuzcKpfJLHGN+S6qGmXrocoA+hssOO eT9TdNaqX5ybNCsBEpmSJYU1aHp0+QyfV8Mlm9ulwLsYHNd0hty7VjLdlw8aPZ6l8iqTuQgCBYj0/ AYvbpBs7pDN8Un5lLnMuict8nUifr6bxjSeeHcRC8=; From: Christian Schoenebeck To: Kent Overstreet , Dominique Martinet Cc: linux-kernel@vger.kernel.org, v9fs-developer@lists.sourceforge.net, Eric Van Hensbergen , Latchesar Ionkov Subject: Re: [PATCH 3/3] 9p: Add mempools for RPCs Date: Mon, 04 Jul 2022 15:39:32 +0200 Message-ID: <1877940.0u7pHPiiHj@silver> In-Reply-To: <20220704130631.eq5txpq62gwvbvts@moria.home.lan> References: <20220704010945.C230AC341C7@smtp.kernel.org> <2335194.JbyEHpbE5P@silver> <20220704130631.eq5txpq62gwvbvts@moria.home.lan> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Montag, 4. Juli 2022 15:06:31 CEST Kent Overstreet wrote: > On Mon, Jul 04, 2022 at 01:12:51PM +0200, Christian Schoenebeck wrote: > > On Montag, 4. Juli 2022 05:38:46 CEST Dominique Martinet wrote: > > > +Christian, sorry I just noticed you weren't in Ccs again -- > > > the patches are currently there if you want a look: > > > https://evilpiepirate.org/git/bcachefs.git/log/?h=9p_mempool > > > > I wonder whether it would make sense to update 9p section in MAINTAINERS > > to > > better reflect current reality, at least in a way such that contributors > > would CC me right away? > > > > Eric, Latchesar, what do you think? > > > > > > @@ -270,10 +276,8 @@ p9_tag_alloc(struct p9_client *c, int8_t type, > > > > unsigned int max_size)> > > > > > > > > if (!req) > > > > > > > > return ERR_PTR(-ENOMEM); > > > > > > > > - if (p9_fcall_init(c, &req->tc, alloc_msize)) > > > > - goto free_req; > > > > - if (p9_fcall_init(c, &req->rc, alloc_msize)) > > > > - goto free; > > > > + p9_fcall_init(c, &req->tc, 0, alloc_msize); > > > > + p9_fcall_init(c, &req->rc, 1, alloc_msize); > > > > > > mempool allocation never fails, correct? > > > > > > (don't think this needs a comment, just making sure here) > > > > > > This all looks good to me, will queue it up in my -next branch after > > > running some tests next weekend and hopefully submit when 5.20 opens > > > with the code making smaller allocs more common. > > > > Hoo, Dominique, please hold your horses. I currently can't keep up with > > reviewing and testing all pending 9p patches right now. > > > > Personally I would hold these patches back for now. They would make sense > > on current situation on master, because ATM basically all 9p requests > > simply allocate exactly 'msize' for any 9p request. > > Err, why? > > These patches are pretty simple, and they fix a bug that's affecting users > right now (and has been for ages) So simple that it already had one obvious bug (at least). But as it seems that Dominique already supports your patch, I refrain from enumerating more reasons. > > However that's exactly what I was going to address with my already posted > > patches (relevant patches regarding this issue here being 9..12): > > https://lore.kernel.org/all/cover.1640870037.git.linux_oss@crudebyte.com/ > > And in the cover letter (section "STILL TODO" ... "3.") I was suggesting > > to > > subsequently subdivide kmem_cache_alloc() into e.g. 4 allocation size > > categories? Because that's what my already posted patches do anyway. > > Yeah that sounds like you're just reimplementing kmalloc. Quite exaggerated statement. Best regards, Christian Schoenebeck