Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5911896ioo; Wed, 1 Jun 2022 15:49:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3MTvIEjvlLRNbuXwTGR0ae6K+JX2og3ITZX/ivoj4z7+6Yy7GYYrTymOpi5a5Ro3dhF5K X-Received: by 2002:a62:a516:0:b0:505:722e:15d5 with SMTP id v22-20020a62a516000000b00505722e15d5mr68799493pfm.52.1654123740638; Wed, 01 Jun 2022 15:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654123740; cv=none; d=google.com; s=arc-20160816; b=rvwq6F4z/dY0c0lIYx1Ix2LuaANHesOsXXyphzWI2HZp3JXvhI5ZcA9yYS96X67vo5 jfLAjwqOqUcIWZwk+OLfsuXgb89gjYlDoID1jU35clq2kLEU/EfIL1VyyLZG4HVo4qu2 aF5OTddK+awhnr01bECJUglRbdTgIB+Qs3rB+5CvuCrY7f/QYrLXczPitT5KNIKSUNKw 4qzMQpUl9mgBYCCStrozbvFRQkGuSc43YauYbzmWudFTpaTSyqdBXBunixewn33GV0yR NsbZnxsv7sRoWf5STrKic2GJ1NaDzwf6ZkmM4fvk69GBy6ShKAsft44/D9g/Va4nKco+ fjtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:content-transfer-encoding:in-reply-to :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=2f0BHsBpq85ivP1dIKJ0uio8fENOzyRfwTPQnpZYJRg=; b=m8d356sGawq0tXAu1vxq+DfevLyHJq9TRtAvlsx8Nc1p2f7H4MjKiDKokOMgvgFrDo lw2rWru1S+irVkXBiZGVczjyuc1Ey4BV/0jzkFHWPOP6jNz1N6Zb7hqSjKL6m3qYisIB vyrtc42ehyRLV8iqAA4beLMcfkCE4fSqLc4buRGWvNPTTB5ampbXHKf9pKp56bDNUTwG 2dErQVnMoev6S17h3q4RlclN+isg26dMFbjDhv6rvtGxQDwX+kNNPzD4sM7RIrPXSLj1 LI1txTzoXHFOOBBlQOC0sAyzRN+SXbCssZEEwIaKLMdxpqvy1NgmGFnQYn5qy0eDIzJZ RtTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=E8t1tTnS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x19-20020a1709027c1300b00161e5dcc680si3738179pll.358.2022.06.01.15.49.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 15:49:00 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@deltatee.com header.s=20200525 header.b=E8t1tTnS; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=deltatee.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EA2E01C2D43; Wed, 1 Jun 2022 15:42:30 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232301AbiFAWmU (ORCPT + 99 others); Wed, 1 Jun 2022 18:42:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232253AbiFAWmR (ORCPT ); Wed, 1 Jun 2022 18:42:17 -0400 Received: from ale.deltatee.com (ale.deltatee.com [204.191.154.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 306C1192C56; Wed, 1 Jun 2022 15:42:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deltatee.com; s=20200525; h=Subject:In-Reply-To:From:References:Cc:To: MIME-Version:Date:Message-ID:content-disposition; bh=2f0BHsBpq85ivP1dIKJ0uio8fENOzyRfwTPQnpZYJRg=; b=E8t1tTnSSJXVJy3I2k7upgMPeH 0w8So78p5JydBzf/h8IBbidTNc3H3InOcEay072ojxPnVkdJMjZtr7ZGoYIa99SC+aStt8zhnrraS 2bE+hAgI/cZhrYTv27dMhr2OmjDqVj8WeXhylMakQcWmGgfpfaPYMNx2Ipp+kHGts1gGhT4SCqx6M 7V1w6zsIuTqmimpvydCSqyzD8GYYQEkTfEz9xhlkrr/bE+jUn6K6RVG2OXBZ86SxDIcxs30REEmae 5hRkaroXlHnJ3rTWCAqrWUJdSXMfbUBg76T3iTbRSe5PxSOm+pfENCg41Ptz7fr2U3E5STY1y6MBI u8SmnH8Q==; Received: from s0106ac1f6bb1ecac.cg.shawcable.net ([70.73.163.230] helo=[192.168.11.155]) by ale.deltatee.com with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nwX2T-00DcNy-Hz; Wed, 01 Jun 2022 16:42:06 -0600 Message-ID: <6605fb80-47c4-3a42-1fde-fbb42886ebc3@deltatee.com> Date: Wed, 1 Jun 2022 16:42:00 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Content-Language: en-US To: Song Liu Cc: Christoph Hellwig , open list , linux-raid , Donald Buczek , Guoqing Jiang , Xiao Ni , Stephen Bates , Martin Oliveira , David Sloan References: <20220526163604.32736-1-logang@deltatee.com> <20220526163604.32736-13-logang@deltatee.com> From: Logan Gunthorpe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 70.73.163.230 X-SA-Exim-Rcpt-To: song@kernel.org, hch@infradead.org, linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, buczek@molgen.mpg.de, guoqing.jiang@linux.dev, xni@redhat.com, sbates@raithlin.com, Martin.Oliveira@eideticom.com, David.Sloan@eideticom.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 Subject: Re: [PATCH v2 12/17] md/raid5-cache: Move struct r5l_log definition to raid5-log.h X-SA-Exim-Version: 4.2.1 (built Sat, 13 Feb 2021 17:57:42 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Logan