Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp23216rwb; Wed, 14 Dec 2022 13:27:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf7+/siC/vj0swm/bC4QgsKkQK/YQ3NUQhQvZFbHbxQpq85hFVfw0rsNgit0ef9Vl6Cqq00/ X-Received: by 2002:a17:906:3f90:b0:7ad:943a:4da0 with SMTP id b16-20020a1709063f9000b007ad943a4da0mr20909658ejj.21.1671053236595; Wed, 14 Dec 2022 13:27:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671053236; cv=none; d=google.com; s=arc-20160816; b=L8BG2U/60KxR+0C81mFVQikKm1crg9QseTtrFrDDJhAFk93UK2qArEMFjugEJ6AIFj 8ca3mvACUNNf9ZswoLO2UFziZaPULSE7LNZJcuDX6Kj0tkaMxPhKhNocUd/2865E0egT vFSHqLO8cq7ZhGK5QqrR2j+Assz//KyJmjF0+ZJcFO4nsFoRZhYv3B2oeU3ud8OZ37zj Mcw1srUdra/IaS4ToZrSwElEcHRxFT/e7d1axgdAyM7xIPr2UDmas9277uwtLFP5sxT5 spU8fBJQuOB6Y+eEnKhaTFc+oz2tSN2Rn16OKSXY7EFLLx4PF8ll0W+AsjA+9Z3nWOsD +QFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:to:cc:in-reply-to:date:subject :mime-version:message-id:from:dkim-signature; bh=Wq/OXWhveT600Zka3PCUJcilEAuPz6WcTRNKviwQwxY=; b=UmO0LO85fRmlMDuFOCElSEhbIxflj50LcSPMmncouM6aj5F8yzwhm7WkzunW7BdeMS La/cQQWY02Cn/5MlMDe46m4VwpRh/LSZveolXFiP8g9e4QOTbad2EnbYaRAO4oSq4R0k IduwFacqGGdWwtXLWTt1DyWsN2m3AjDnyzWVx2keP1gsA0bXLWh6NTEMPNAcOVC2KuAJ xIsY3FbkoaRktmjhNl930fGUJmwk/FNL6UP/V5VlYB9s92zOhZoqOUV+Fhnt/cFJHGzu 2It82nvowr4YdeWf2TkT2B1IejlYQB5WrXKIQTICn4PIFf/OEYMSai/VWqbHu7xg8nft 1LXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dilger-ca.20210112.gappssmtp.com header.s=20210112 header.b="xg4XLa/k"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds3-20020a170907724300b0078049ab4bbasi2730931ejc.526.2022.12.14.13.26.52; Wed, 14 Dec 2022 13:27:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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=@dilger-ca.20210112.gappssmtp.com header.s=20210112 header.b="xg4XLa/k"; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbiLNVPl (ORCPT + 99 others); Wed, 14 Dec 2022 16:15:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbiLNVPk (ORCPT ); Wed, 14 Dec 2022 16:15:40 -0500 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39AAD2678 for ; Wed, 14 Dec 2022 13:15:38 -0800 (PST) Received: by mail-pf1-x431.google.com with SMTP id w26so5366728pfj.6 for ; Wed, 14 Dec 2022 13:15:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20210112.gappssmtp.com; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=Wq/OXWhveT600Zka3PCUJcilEAuPz6WcTRNKviwQwxY=; b=xg4XLa/kcKmhkZehr5A4FHa6odgnm0O+apWXQpg997lmyBPUPo1dHZCMtO92gP97y3 8RDuw+2hF++yGFGaoJi6QOdHL1GWPgNRxGwkTWYCx2yXrXe6wyYuebzapJg7OFx7U8AJ ZeM/ESVU58+ZDALlLJ5r/mb1EWhL8oZjmypGEJRFwrv+iIIYnnnNrM+AdXeh5sMzAgsa 1BvWxmGijFk7OWf9Uab57c98PjoC7ObtWKAYvIVBAwh6MxK91FRQ7Psk8XBszh8xHGIx MADaX1EB/SA8OphWnV9WpKhjTPIpV6MrjVZjdp1gXj3mjCOcYBXNb50w1qSwxelZ1bWb 0opg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Wq/OXWhveT600Zka3PCUJcilEAuPz6WcTRNKviwQwxY=; b=tw/eTyhXXA2STdAg9JMMwhTXx/wYzGIz1Xal5IYiQRgC0tvyI59bp0lVSGDt2WbQF1 2WGbetwXpwjJ8i4YUx5dI7hgebSY6KHWIcXMzu+UuLGX1fKNNSB2FO5e34rh/VAwCauU XMfdgcN/ZESSB4AEDJhrhNgNwWOTSfc2njnsk8uAeKsLLKlYbgTlfENc+UCwIYarHiCk Y269apQZnjYJiGLwTpXWhmdxT3RdKANqM8Qn0FpgNm4EJQzlP11ARITiidN2Mlf/5Uw1 YhLs4vEEDoW/oTtnDzqMC709I4fANTekF0rGU4KFwVWd5IMFA7byDkftVwWQrWJjYoG/ 8JWA== X-Gm-Message-State: ANoB5plQ9/4sy1VBLWVf18gG+8jwgXlEfRgANDlbjtodPpnzwZtwdXNw OGKr75ThuPN+avoTB5b2L32EZg== X-Received: by 2002:a62:6495:0:b0:56e:d365:f96d with SMTP id y143-20020a626495000000b0056ed365f96dmr23681719pfb.5.1671052537636; Wed, 14 Dec 2022 13:15:37 -0800 (PST) Received: from cabot.adilger.int (S01061cabc081bf83.cg.shawcable.net. [70.77.221.9]) by smtp.gmail.com with ESMTPSA id i31-20020a63221f000000b004792ff8ab61sm258041pgi.80.2022.12.14.13.15.35 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Dec 2022 13:15:36 -0800 (PST) From: Andreas Dilger Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_1B60113F-EF13-4D54-9208-04934C2C0691"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [RFCv1 15/72] tst_bitmaps_pthread: Add merge bitmaps test using pthreads Date: Wed, 14 Dec 2022 14:15:30 -0700 In-Reply-To: Cc: Theodore Ts'o , linux-ext4@vger.kernel.org, Harshad Shirwadkar , Li Xi , Wang Shilong To: "Ritesh Harjani (IBM)" References: X-Mailer: Apple Mail (2.3273) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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: X-Mailing-List: linux-ext4@vger.kernel.org --Apple-Mail=_1B60113F-EF13-4D54-9208-04934C2C0691 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Nov 7, 2022, at 5:21 AM, Ritesh Harjani (IBM) = wrote: >=20 > This patch adds a test to verify the core bitmaps merge APIs > for rbtree bitmap type. >=20 > Signed-off-by: Ritesh Harjani (IBM) Reviewed-by: Andreas Dilger > +/* > + * Note we use EXT2FS_BMAP64_BITARRAY always for used_bitmap, this is = because > + * EXT2FS_BMAP64_RBTREE does not support parallel scan due to rcursor > + * optimization. > + */ Is this going to be a problem in the future? I think for pass1/pass5 = there are no rbtree bitmaps that are *source* bitmaps for multi-threaded = operation, but I suspect that once we try to parallelize pass2 this could break. Is there any check in the code that prevents multi-thread access to an = rbtree bitmap? Making a copy for each thread, or ideally copying the rcursor = for each thread, to allow at least multi-threaded reads. I don't think = there is a high need for multi-threaded write Cheers, Andreas --Apple-Mail=_1B60113F-EF13-4D54-9208-04934C2C0691 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAmOaPPIACgkQcqXauRfM H+Bizg/+IDtVNo6CpS4FM6uXdtGOsGF46b1I9SQXRZbKCkjo6lKClYFIQwX0rHtO DbmrtZpTfqns6+kOIC8vGpKUQYfSzsPjtXF2lHEB+4mcazSQI9cBQwRz5BQWNYf/ FiHUyEwXLUG1j/B0R2RebauGDnqG10Jx7I7ewh82Bw2HGnW77SZiMwsNpBN8e7Tg MeUjfGHQ/wBTqriuEP3edDRK4Rk4U3G0mijYui7mvlnRXer7XWaPjgzLwZ3PEBQk 6uwNwWYaJwoZW14EJa4mNNPnmrOPZF5zfQmtX8cf633njMd/COaCRUBrfDFGsYqN 4ynmdY8HPTav9c+0CWmm9VqG5iS3o4iJO9vYh2oaTeoDrsCeAZsxCCqEW4RjPynf zKK6UqsK4fO6PqZiiafX499zA1M+EfauSPGMLzEsXdAhU7OKBNZEePSkD4VdgLym JghnaQCBquDnQuNOPnmJfzDWsrk5E7OfF4hL/9K2SzADzSl+UBsxm2XwRxoBg83+ o4P5enOEOb8Dwl907QMsfxF31IvYLGPF9hqaEYuMp6jXNYy+uunWdUnSknXwPQjA 2kNfRGBKVdTd3qA8wRggAeczi3SjOAFKoLGHCGq+19IY/MKcL/b1eR66rE9z4K43 iiVzhXg4dik00AlBg1vq82wcG5HD7Wort+sTNx8z+1EX/Lidb78= =Mmza -----END PGP SIGNATURE----- --Apple-Mail=_1B60113F-EF13-4D54-9208-04934C2C0691--