Message ID | 20230218003323.2322580-8-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 s9csp147997wrn; Fri, 17 Feb 2023 16:48:10 -0800 (PST) X-Google-Smtp-Source: AK7set+67DeSiWh1RAh/OAItJ/E9T+aiqbMtsZBqyotFFa6Gjkv7fhR8ZEkUqln0X0nAJwx6n0e/ X-Received: by 2002:a05:6a20:4c24:b0:c7:885b:450b with SMTP id fm36-20020a056a204c2400b000c7885b450bmr3029166pzb.22.1676681290052; Fri, 17 Feb 2023 16:48:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676681290; cv=none; d=google.com; s=arc-20160816; b=psFNGitv6Tb4auQ60g5YwQbL3XCEnszqtzyeecQg6AvsVt2oQ/YEs2mvp6JhNK4mFG /sKzCWHuPFBsg+Uyjw52DSWooj6mNxpEhBE66y1D5OxBVhi6WVrdMlN5FSh6BaiH7TR/ 8H1RylNLdyFVI340wJSz90mntvBsy6fs9go42zzxVHuC7j4ZfoYM1c1SuXCg//HL5jAH dS3x5rXSrKqvB8LvHFwe+EBgcr8FbiCcD3l/nb10RuRebfw/dnyRs8W6rhkZRv8uvM4M +uNcXfJqvR3708DWPM9dgKX4/fnn520X+JVFMpqa53DLGJVBdozYusBrvtbJzh9K50po /SOw== 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=fljFV7VThIWvGg9YGEMXmL5GRBoFbMTuiom63QhKsw0=; b=RvR0Tj7IF3//KrXanjuSCyt94RuGVY+V75XkJ4EIlWuGB1rsES90q/QTSVOp9/fd2N dzNzhDXwfweHl1PLlueRUl2oJHgQ+BN3+4gD05H6aa1gmVBo/g4YhaRj5ET020EsUUrF uSJvDc1FGh4Ku7ynSqKLOMmA6SLolnDcRP2NJgRsn5pRTmTSKgWHSzrJ7sVuez/jTfOH +TKD9ZHDe+dwDy9m+POrE1sOYSzJpadWczaA8etrPYdw+f1EXnB58QwURqi6yzip94TH bwYgsEciZKfXU63ilfFLA7QZJWz/8V2/bAmwovEHRou6CqxVioqbw9IWX1v3/yi8IKs9 ZQEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=n66eBIPF; 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 y64-20020a633243000000b004fb97acac30si6031471pgy.774.2023.02.17.16.47.57; Fri, 17 Feb 2023 16:48:10 -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=n66eBIPF; 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 S229585AbjBRAg3 (ORCPT <rfc822;daweilics@gmail.com> + 99 others); Fri, 17 Feb 2023 19:36:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229728AbjBRAg2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 17 Feb 2023 19:36:28 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 73FF36D251; Fri, 17 Feb 2023 16:35:57 -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 B308E6209C; Sat, 18 Feb 2023 00:34:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 54E37C433D2; Sat, 18 Feb 2023 00:34:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676680441; bh=cW3tqr7Wz1/+iCrGEv007ARmFZP9bjEOtTw2DUtSkXU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n66eBIPF5VOPlydJO6o1F9Id9ahHIQmnpN9qb9pfpbH2CclkG8oyade30qFmGYJHc IkNEcigIpm9Y/Zk6c0an3pmtrIf93u6e9mKMpaQ7ROqpkAN9p6+TWZxSOoGtn1GEsl qMARtGiDDlKjmJOUEqJtvKAjUahxqFbIHqf4kjlDvYueYDzZ5qqygu9fGUe1wobML8 JaSTrVbi1pGfB2C8zeD9slAWsW39qcybUL1TwF8ZtrKB9WyIS2P9Sr3J0npQgsfUTH r2oG9P+csiuyYPLQKnAo0fwOg5jXFwYauD+0V5i7nALf/3S8dUGbE1BFAFyD1ysu5O X/SFmxVdZ2vGg== 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 v4 07/11] 9p: Add additional debug flags and open modes Date: Sat, 18 Feb 2023 00:33:19 +0000 Message-Id: <20230218003323.2322580-8-ericvh@kernel.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230218003323.2322580-1-ericvh@kernel.org> References: <20230124023834.106339-1-ericvh@kernel.org> <20230218003323.2322580-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?1758127760454071759?= X-GMAIL-MSGID: =?utf-8?q?1758127760454071759?= |
Series |
Performance fixes for 9p filesystem
|
|
Commit Message
Eric Van Hensbergen
Feb. 18, 2023, 12:33 a.m. UTC
Add some additional debug flags to assist with debugging
cache changes. Also add some additional open modes so we
can track cache state in fids more directly.
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
---
include/net/9p/9p.h | 5 +++++
1 file changed, 5 insertions(+)
Comments
Eric Van Hensbergen wrote on Sat, Feb 18, 2023 at 12:33:19AM +0000: > Add some additional debug flags to assist with debugging > cache changes. Also add some additional open modes so we > can track cache state in fids more directly. > > Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org> New debug flags can't hurt. For open modes: don't we send the mode verbatim to servers? won't they be confused? I guess I'll see in the next patch if you trim it down, but we might want to add a P9_MODE_MASK or something with values we're allowed to send and have client.c filter it out?
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h index 429adf6be29c..61c20b89becd 100644 --- a/include/net/9p/9p.h +++ b/include/net/9p/9p.h @@ -42,6 +42,8 @@ enum p9_debug_flags { P9_DEBUG_PKT = (1<<10), P9_DEBUG_FSC = (1<<11), P9_DEBUG_VPKT = (1<<12), + P9_DEBUG_CACHE = (1<<13), + P9_DEBUG_MMAP = (1<<14), }; #ifdef CONFIG_NET_9P_DEBUG @@ -213,6 +215,9 @@ enum p9_open_mode_t { P9_ORCLOSE = 0x40, P9_OAPPEND = 0x80, P9_OEXCL = 0x1000, + P9L_DIRECT = 0x2000, /* cache disabled */ + P9L_NOWRITECACHE = 0x4000, /* no write caching */ + P9L_LOOSE = 0x8000, /* loose cache */ }; /**