Message ID | TYCP286MB23239EE29037F6051CFE5691CAC09@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM |
---|---|
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 s9csp678457wrn; Sun, 15 Jan 2023 02:33:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXu1qkQnopU1psV79+Obe8KPxcdCzdHI9hSyTVUDQTQr3aHa38YKWLZGiV6I6stEQcG5CF0Y X-Received: by 2002:a17:906:7fc3:b0:7c1:10b8:e6a4 with SMTP id r3-20020a1709067fc300b007c110b8e6a4mr70435451ejs.19.1673778800952; Sun, 15 Jan 2023 02:33:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673778800; cv=pass; d=google.com; s=arc-20160816; b=KQyAQstWBtn08LUdPe53zS2h8Gr/InXdeViLwgxwF5WywlfJLej7QnLydG9ev8VA2l mYzfEZR9UJlX5uISFdTbaJ3Y1oGFzGANjfWXNvRjcyd88h6My/YVSkPEyUoCCHOEqfWZ vPiDxYQuIuVbQNFpNsv3emZ+YJtg4NfFUi0BI8BAlDdP9Z8n9euiG+5gVRS2sEg5rfCM VR7Nh2GZRrht4I0P3LAISX/bdCLJYabbftwSMv2NI6ryEObRlkacWH2vSSCBYtb+kRu7 J33H2Eu1rDloUaXkbzSKFGWoxy1l4r9uC/UMY3cMAuOZhswolHduRI/LXp7G6A/8JL18 GeeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=c1/qUEJuTjNq9et9JCnYcwWdMajyUbf3L6UqtV1eIp4=; b=Xf0KlZ3T5S68fdYDxHO96j/gkjkS2sQCfm3mewsEfyKG0klRoUWSu9XITkExFDh3LW Hbf+O350lxArISEt3kh4l6sVZYuto4JHhhN90ncTADI/IcV0BG8/pwKiTUcV67Rb+5H4 rkYF3moAXWXkPnMuDR6aOVtYQ56AOzC1A2sjcrZaz0ld2KY/j5CLrc6k1cyrYTzg1GSf JqdwIRaxOQ8j/YYzH3OsxUcBNstGbqPaVTfaKNEvvqwXE8X6+363G4+/ngIUgH8DRE8e RdanIKbOjbUeVVcUMzNgm9yjD5bStnB2JuSUSEK5DL140Rvftz5KAyeI8Q3S+yRSFmaE q+hg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=SytVcgIe; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd16-20020a170907969000b007ae127c6c80si29669535ejc.672.2023.01.15.02.32.54; Sun, 15 Jan 2023 02:33:20 -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=@outlook.com header.s=selector1 header.b=SytVcgIe; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230420AbjAOKcX (ORCPT <rfc822;stefanalexe802@gmail.com> + 99 others); Sun, 15 Jan 2023 05:32:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbjAOKcV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 15 Jan 2023 05:32:21 -0500 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01olkn2097.outbound.protection.outlook.com [40.92.98.97]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23B50C16B; Sun, 15 Jan 2023 02:32:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NEZf39pkFpQmVt7Qku3LGFX/wlJeiKGbRoTCJR/QBnjCbtQaK9elkjpi6WUWG/PzzUpLBFItKkycUhOomsRXOgYfiG7hsZ/qsUpCgZjbX5l70SODEzbPEBpoZaBk6eh0EfW7b2YrXq5M9GT8XpInqnFBBXqQXB+4PFAKIuKyXnsAJuLFztc3lPxzpkCjN7/9L11DWrjZ08sxzDWZLhdloRYcGlXALvdwZzCqbmlJ5+9/cgmA6qn1uUEBMM2PBSlMNJeqeeizkcAgm8JOaOuR2JAvKYC/vDv8CXiNafQnn1X3kayhfXRH/G58GH7MO5DnCcTp0ASaAnMpV2jpYrr8tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=c1/qUEJuTjNq9et9JCnYcwWdMajyUbf3L6UqtV1eIp4=; b=Mccrh7vEp/6ftJpRCk9BSWfH3e6z912cNmM14h+rY9saqx7RuU2BCeFaFmGrU5pMV4MybQvXBGLRKFfNWmBM/2hrMSCmDiQy8tNlpMd1X4A4roYE2j02sByGmLDU4SgvX+nT4lwIRRoJAnzhNiGtrzhf3DBpmqP1DPURReoUzKE8fw9oBBUaX7C5zgSygL5qqABMpBS5ak3zDI1Sak/csPsRICtfDnDns3yVQXjOT/PpcJGZ76JAf1bTkPpCiUKI0vlbe8lSi8znlT9ocDc9hgr9SbgI3S0PI3LzzvsE2MhBFOMzWPiI6EaEWFyeEsOUxUGsBzYIECOHb4lNjdyelA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c1/qUEJuTjNq9et9JCnYcwWdMajyUbf3L6UqtV1eIp4=; b=SytVcgIeqhgV2Jevs+zT6f/1W8ZZ/Tq3UbJxrkR2DVE5hvdKL5xWNfIS1aHT7xQJxJ1FDV/NTFNCG3NO5aumCDJtBGcNMYWeLEwKfogKoRaJlr0Pp5JkFRK/1vVh8CYJxTJ9tc2hFsMDIgmog3ytEjguuMhay4X0Qd6gFNSBAnFCDWGzGj/NcsJv4KvqeaKxDXPLbILcA3u8SSlBioip4qIIZ0DLO9KlPCMg9MCFGrbSdcGfoBedhW0Pp9gzI8t+acvr4GkBZX5H8Ui9U986JXSngjgDm5YGFQkMGdyySPG+EWeNSvhwMLTME/EKQR5h7WIhYCIPLV7nRjr8WMvZ8g== Received: from TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:152::9) by OS3P286MB2025.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1a0::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.12; Sun, 15 Jan 2023 10:32:17 +0000 Received: from TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM ([fe80::ff96:9cb6:e047:c605]) by TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM ([fe80::ff96:9cb6:e047:c605%4]) with mapi id 15.20.6002.012; Sun, 15 Jan 2023 10:32:17 +0000 From: Dawei Li <set_pte_at@outlook.com> To: linkinjeon@kernel.org, sfrench@samba.org Cc: senozhatsky@chromium.org, tom@talpey.com, hyc.lee@gmail.com, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] ksmbd: Minor performance improvement & code cleanup Date: Sun, 15 Jan 2023 18:32:03 +0800 Message-ID: <TYCP286MB23239EE29037F6051CFE5691CAC09@TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [d0E2ssGt2yAPHeaClCLOtElkHUHTRapm371fmQ2f9gE=] X-ClientProxiedBy: TYAPR01CA0210.jpnprd01.prod.outlook.com (2603:1096:404:29::30) To TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:152::9) X-Microsoft-Original-Message-ID: <20230115103209.146002-1-set_pte_at@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYCP286MB2323:EE_|OS3P286MB2025:EE_ X-MS-Office365-Filtering-Correlation-Id: dcedf621-c5db-4596-4dc6-08daf6e3c637 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TtBlAQDgVmtVMz+TFqCyVSyQ0xzeffJpKOmoTH39AJhEUnYkXAeT9ivN7aLAlhL8FvRwLXI1OFGyf7OgsqyxKV0LF9LYlrRH6AIq6bPY58YSc0frFem1a+xAJe/suJhayIxWRp1MXcCcOk2TgxAONDAjY8f3+u7OGzuM2Wkgset9ORU4EGK53Sz7sp8AI3s7GkL/vuaWCYIVXy0fURB6ZI4b6BM8iZcO4+ZwUMi4nonjT5i/n2TDlg3wwR+lgAw49syfZFCbpwNaQzOfVG7kM22Vk9OIt8ovZTQCqjlLOpj9YXSleyofznNp1C02m2OQKAtU2CRUt5GpLqc5TcBWKH2waxnWMBui/J6mSTCvlzBf4AadGFsMTSKA7sjko1bWImwTBTZrohf6CvEYEKe21kCS162uw62FWAHvcZ2xF8yekb5r5/l45EXRcoTqGwUYqfpn8wqvQ83KmGtnTS89t7tORIfA6aD4tE436YNesdYs8DrpYe81wP4Z6TbYFDUn5hUGj4W5VTtJ53W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sBk6c4ckYzBYU3KZNKLF6B4tAaBepp0UpZRfX9+Dfrss4l/XJ4hmv4AasrP4MKo19I8C0FjPC0j+H0CnfLmT/V0g1J51vV9Wk/rwujGt9mf5ROXU3iDBt6j0o65Ptsw918+ffw5S1ZL9P7jK6gR5xGSiSMR/qQKCpFuJLjUmb36VfiKRhHe+oEA7czZWCQjfAhdttLjjyRWMHXfNSF2EXV5PRqqxT1H/zlWpnGw9O1QRP5SmQ8URQbyQDVILhGyycpdND4HYSeN+2r/QRTFWOUcVLIKo+2+fPgsskelHf3YR/S2t7mSsUUAuyavqeRSVA4WJRfb4tjDCZZdvTfPrAtLw/WDG3zesNK8Pl2GPZH6/r9y0YYbb8rnsM/sS0dfse9ho4mSzs9AvzwRhn8QC6i1dex8= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: dcedf621-c5db-4596-4dc6-08daf6e3c637 X-MS-Exchange-CrossTenant-AuthSource: TYCP286MB2323.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jan 2023 10:32:17.3141 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS3P286MB2025 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,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?1755084280082523994?= X-GMAIL-MSGID: =?utf-8?q?1755084280082523994?= |
Series |
ksmbd: Minor performance improvement & code cleanup
|
|
Message
Dawei Li
Jan. 15, 2023, 10:32 a.m. UTC
It's a small series mostly aimed at performance improvement and code cleanup. Among which, First three ones are performance related commits, and other ones are minor code cleanup. 1 & 2: list => xarray, acclerating index based lookup. 3: rwlock => rcu primitive, enabling write & read concurrency. 4: Simple duplicated code removal. 5: Minor code rework and exception handling. 6: Simple typo fix. Dawei Li (6): ksmbd: Implements sess->ksmbd_chann_list as xarray ksmbd: Implements sess->rpc_handle_list as xarray ksmbd: replace rwlock with rcu for concurrenct access on conn list ksmbd: Remove duplicated codes ksmbd: improve exception handling and avoid redundant sanity check in loop ksmbd: fix typo, syncronous->synchronous fs/ksmbd/asn1.c | 19 ++++--- fs/ksmbd/connection.c | 54 +++++++++++--------- fs/ksmbd/connection.h | 1 - fs/ksmbd/ksmbd_work.h | 2 +- fs/ksmbd/mgmt/user_session.c | 98 ++++++++++++++---------------------- fs/ksmbd/mgmt/user_session.h | 6 +-- fs/ksmbd/smb2pdu.c | 52 ++++++------------- 7 files changed, 93 insertions(+), 139 deletions(-)
Comments
2023-01-15 19:32 GMT+09:00, Dawei Li <set_pte_at@outlook.com>: > It's a small series mostly aimed at performance improvement and code > cleanup. > > Among which, First three ones are performance related commits, and > other ones are minor code cleanup. except 0005 patch, Acked-by: Namjae Jeon <linkinjeon@kernel.org> Thanks for your patch! > > 1 & 2: list => xarray, acclerating index based lookup. > 3: rwlock => rcu primitive, enabling write & read concurrency. > 4: Simple duplicated code removal. > 5: Minor code rework and exception handling. > 6: Simple typo fix. > > Dawei Li (6): > ksmbd: Implements sess->ksmbd_chann_list as xarray > ksmbd: Implements sess->rpc_handle_list as xarray > ksmbd: replace rwlock with rcu for concurrenct access on conn list > ksmbd: Remove duplicated codes > ksmbd: improve exception handling and avoid redundant sanity check in > loop > ksmbd: fix typo, syncronous->synchronous > > fs/ksmbd/asn1.c | 19 ++++--- > fs/ksmbd/connection.c | 54 +++++++++++--------- > fs/ksmbd/connection.h | 1 - > fs/ksmbd/ksmbd_work.h | 2 +- > fs/ksmbd/mgmt/user_session.c | 98 ++++++++++++++---------------------- > fs/ksmbd/mgmt/user_session.h | 6 +-- > fs/ksmbd/smb2pdu.c | 52 ++++++------------- > 7 files changed, 93 insertions(+), 139 deletions(-) > > -- > 2.25.1 > >