Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5913068ioo; Wed, 1 Jun 2022 15:50:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7P660ZCsKAqw4s7fFNCoXwva7QlGpC1O4dN/lTe9Voc6CzdbHTGv5/wMIz1GIRvU60LtT X-Received: by 2002:a17:90b:33c4:b0:1e0:55d:d625 with SMTP id lk4-20020a17090b33c400b001e0055dd625mr1740614pjb.218.1654123840664; Wed, 01 Jun 2022 15:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654123840; cv=none; d=google.com; s=arc-20160816; b=dfkymtGmaUwhL7OKB1Qcn/dCrTsseREKzREE1zoEGjJmriA9sMz5mboL8khz0Czncu ELdGhE6CUxCj81SP70NGoSZ7blEHJDCCoeJiwVuTbjtLbyzkxwvzGejWPWvgYxEAUSoD //BHT4gOmCzD2HMqgQnVUrtiXKM16GD2UfKQYTypmPje3oznt3WMriLLSjlldJ5tlTnY iteDKVekphFfSpZuQ51lGRTe35babHPS1ttmnYIyoCtt503TXiPC7we5qrtD/7hjSHe+ MZzfox5JxJ36O6FO+zfzTZTVRZxTM2rv2yK1w3lzvMd+7dTEE0J4YaR7hM8Q7eP2gIon ORcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=eTcPXUPLntrWP+xkpFNKvvMCuRc6r4WMKNlzfE0gx6w=; b=ElSi0LJFQFLi/0UgWFgVkJGPklP0hp+6U3r0e4eF6Lbgl/ysYFpjseOcmbKHA7UCTt 3T8O0ZHBLimCPqt98QUQG2+ryaJd5w+GO7h7WHLE8aEXRdSzxloY5a7fHJGsfanviPmZ +0FhWG0Hf+fJdpESC7+BEOSTQ4lJ4o3OZlOiNunmfI0gm7pfsnALInun3x2iO3v60bUJ C1ZrZOq4QgciFhOhC8G0DuWTtZSf85cOYQGv+Nac832Jx1G2dq3ocMS/DwRcwa2SSJF3 lPUg48avbaD3+LLDZKWVKOg33zqmr07mfkuDHU2pXnh477LRvvdJ1ZP5icqt7u8XLfey xiSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VwaGdx1/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f2-20020a170902f38200b001562b0bf47bsi3355620ple.58.2022.06.01.15.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 15:50:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="VwaGdx1/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 405F6295642; Wed, 1 Jun 2022 15:50:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232427AbiFAWuX (ORCPT + 99 others); Wed, 1 Jun 2022 18:50:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232391AbiFAWuQ (ORCPT ); Wed, 1 Jun 2022 18:50:16 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A671C2838FD; Wed, 1 Jun 2022 15:50:15 -0700 (PDT) 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 416796106E; Wed, 1 Jun 2022 22:50:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAD1EC3411D; Wed, 1 Jun 2022 22:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654123813; bh=eTcPXUPLntrWP+xkpFNKvvMCuRc6r4WMKNlzfE0gx6w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VwaGdx1/UcMACPvjO7Yt8wn/SdDk8b+6n55Ytvg1kup70FpVNQs3WMisTRBo1MF8w FoUEK3Qq/2Kf5fdG2+IyWDrERtEcNC81TRCY+z/iFvfCZsWdbN4a8bMjmBGact9B4u iMN40emmIo0Wzpq/4Kxy7FGpgfQd3gL5ZesSUVIlZ5teNaT3o/utb3RNXQ95mAvW2/ gvYH039APq64XPa5OXFwAE65XdzE8/fwHT+Y2T3xDKWD7A9FtA3Td3OwF4Quo7XPYW 8do1GwAF/D/IrozZMz/70EtOHETgnezvGNKVE0bchvfXIrkKi8y2fn8WYjums47ZYW CDZMsXyGUZZMQ== Received: by mail-yb1-f178.google.com with SMTP id i11so5377590ybq.9; Wed, 01 Jun 2022 15:50:13 -0700 (PDT) X-Gm-Message-State: AOAM531m9Pfa6gxcy7UN5ccII6VbZm113j87KXIN1ol7NzCM6vkGbHdy lvz5cZ20wiyCPsXM7Lr0gU/TLlF5lJHNUw7BArM= X-Received: by 2002:a25:a242:0:b0:651:a78d:4636 with SMTP id b60-20020a25a242000000b00651a78d4636mr2247046ybi.9.1654123812737; Wed, 01 Jun 2022 15:50:12 -0700 (PDT) MIME-Version: 1.0 References: <20220526163604.32736-1-logang@deltatee.com> <20220526163604.32736-13-logang@deltatee.com> <6605fb80-47c4-3a42-1fde-fbb42886ebc3@deltatee.com> In-Reply-To: <6605fb80-47c4-3a42-1fde-fbb42886ebc3@deltatee.com> From: Song Liu Date: Wed, 1 Jun 2022 15:50:02 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 12/17] md/raid5-cache: Move struct r5l_log definition to raid5-log.h To: Logan Gunthorpe Cc: Christoph Hellwig , open list , linux-raid , Donald Buczek , Guoqing Jiang , Xiao Ni , Stephen Bates , Martin Oliveira , David Sloan Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Wed, Jun 1, 2022 at 3:42 PM Logan Gunthorpe wrote: > > > > On 2022-06-01 16:36, Song Liu wrote: > >> I guess we could do that. All the inline functions in raid5-log.h are > >> there to choose between the r5l or the ppl implementaiton. So it that > >> would mean the r5l implementation would probably be inlined and ppl > >> would be doing a second out of line call. Not sure if that matters, but > >> it seems a little odd. > > > > I like the current version better. raid5-log.h is not used in many files anyway. > > It's a moot point now. v3 will follow Christoph's other feedback which > essentially removes the RCU access altogether and adds an appropriate > lock in a couple places. Ah, that's right. Thanks for pointing it out. Song