Message ID | 20230124023834.106339-2-ericvh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1930868wrn; Mon, 23 Jan 2023 18:40:48 -0800 (PST) X-Google-Smtp-Source: AK7set/BqSeK04Wo3tJdqzEQDsJA00rsj1y9AgGIYE/Zqc1ssFFTfWQrasYoPz0RWI0qpUIrbUub X-Received: by 2002:a05:6402:5023:b0:4a0:8b2c:2055 with SMTP id p35-20020a056402502300b004a08b2c2055mr392502eda.8.1674528048092; Mon, 23 Jan 2023 18:40:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674528048; cv=none; d=google.com; s=arc-20160816; b=o4Eja6cy2Zs1lMtjtyCR5mNhCJF7hkvCZhCJ53e1iZs55zejV4pZpdsVpMaa2bHVRx XbOvgLW6pWgCfZ8eCjH0IuU6nVAFROh3ahtgp3ZPm/qkn+CimdUbKRW6JUOj8BhCfVp3 Lwo3smI1wob0ZaU/colpUZBm8UqtjycdaG1R+kk+W6AAyyZ18FAnfkLTLK01dL9jZmHC xYwFSmcDs7oXhxhmwZUgljf1ZN2H1CNsNNAAiggevPgj7Z/07bwBJGdhIxx1fKNvGdBn ohNsGCC9SHJANB+yxe98ZIMYOIkfzKOgBdiBqRC+eP672SnmSfwDHhPemWBKkz759IXu boDQ== 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=Fw9lpMcRlQ98cMWAJ6yr69bVmkSt3U+zp7vHa9aUgRs=; b=Qh3/O9okmILXCSm8DA2+KXEjmXy1ClJnX5lWZOFpIbWDwkp7enNzyers6MNM+HYRnz EC939ApLzOMSt14yKHpUl1Hpvd7fHz1mlgz8vZa+bkuoKdkhpETfnr71PP6OAREiaMnL 6SZZw/B5Hii1LS265rw62u/vk6p1hzf2KGWSa2hJeC0DEiVtQM0cP1sl4NEZA+hpe28T iNna+A6j7LbvtI0wCaRAnv+7Cr0J1QW4Kugu1EZGnmxLVsGBuhvCyiKK+wp4ok64Bvok dRz6CH8DvWeHYDRcRsj0lPUlGBLsm+xVLIB+HEwF/wtm1iklwi8DCAWjEAgpTmiLbwo6 QN3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JS6jD+Rg; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a056402036e00b0049f20d4a29fsi1337513edw.315.2023.01.23.18.40.24; Mon, 23 Jan 2023 18:40:48 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=JS6jD+Rg; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230129AbjAXCjM (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 23 Jan 2023 21:39:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232083AbjAXCjK (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Jan 2023 21:39:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C055303F7; Mon, 23 Jan 2023 18:39:09 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 190226116D; Tue, 24 Jan 2023 02:39:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB2AEC4339C; Tue, 24 Jan 2023 02:39:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674527948; bh=PwWjKgBCrFlHwrWRE5cwXvsrY7AklcLgKZPzMWv8M98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JS6jD+RgGGbUubzXvH6A68+919GJ3rSiQnnhqsc+tyKxmcasyjQTcoGGs2Vf5LJIC GvTxhwJvFKg3oEnIsdFQx0xJEONh7r4YAEkjuOrmytD6TrYgNjgvYBDQyQrBVK+so7 87Nxw/8JkegNoigWo1wiPvVLuO6Ji6g5DZHuOxzWXEaHRHGoR7mRDr1EcYhx3RYyz8 JhRtODX5+XTlRuJs5jEaBONXZt4a6Hn7rq5GBbHRZlegWqLWv6nRkHwd66O7pkpRFy l6KMbbQUvCJ9MWjWFBrHxWNMTEusdLjpaWCwhEV0grRv1xf5B2C7lDCDqk4KxOwQF9 Weal6JaTo/frA== From: Eric Van Hensbergen <ericvh@kernel.org> To: v9fs-developer@lists.sourceforge.net, asmadeus@codewreck.org, rminnich@gmail.com, lucho@ionkov.net Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux_oss@crudebyte.com, Eric Van Hensbergen <ericvh@kernel.org> Subject: [PATCH v3 01/11] Adjust maximum MSIZE to account for p9 header Date: Tue, 24 Jan 2023 02:38:24 +0000 Message-Id: <20230124023834.106339-2-ericvh@kernel.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230124023834.106339-1-ericvh@kernel.org> References: <20221218232217.1713283-1-evanhensbergen@icloud.com> <20230124023834.106339-1-ericvh@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752596047712791264?= X-GMAIL-MSGID: =?utf-8?q?1755869922397806229?= |
Series |
Performance fixes for 9p filesystem
|
|
Commit Message
Eric Van Hensbergen
Jan. 24, 2023, 2:38 a.m. UTC
Add maximum p9 header size to MSIZE to make sure we can
have page aligned data.
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
---
net/9p/client.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/net/9p/client.c b/net/9p/client.c index 622ec6a586ee..6c2a768a6ab1 100644 --- a/net/9p/client.c +++ b/net/9p/client.c @@ -28,7 +28,11 @@ #define CREATE_TRACE_POINTS #include <trace/events/9p.h> -#define DEFAULT_MSIZE (128 * 1024) +/* DEFAULT MSIZE = 32 pages worth of payload + P9_HDRSZ + + * room for write (16 extra) or read (11 extra) operands. + */ + +#define DEFAULT_MSIZE ((128 * 1024) + P9_IOHDRSZ) /* Client Option Parsing (code inspired by NFS code) * - a little lazy - parse all client options