From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 3EFC81F8C7 for ; Wed, 1 Sep 2021 06:08:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242248AbhIAGJr (ORCPT ); Wed, 1 Sep 2021 02:09:47 -0400 Received: from cloud.peff.net ([104.130.231.41]:36080 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242085AbhIAGJq (ORCPT ); Wed, 1 Sep 2021 02:09:46 -0400 Received: (qmail 15418 invoked by uid 109); 1 Sep 2021 06:08:50 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Wed, 01 Sep 2021 06:08:50 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 3874 invoked by uid 111); 1 Sep 2021 06:08:51 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Wed, 01 Sep 2021 02:08:51 -0400 Authentication-Results: peff.net; auth=none Date: Wed, 1 Sep 2021 02:08:48 -0400 From: Jeff King To: Taylor Blau Cc: git@vger.kernel.org Subject: Re: [PATCH 0/2] pack-write,repack: prevent opening packs too early Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Wed, Sep 01, 2021 at 01:12:41AM -0400, Taylor Blau wrote: > On Wed, Sep 01, 2021 at 12:59:23AM -0400, Jeff King wrote: > > So anyway. I think we definitely want the index-pack.c change. We > > _could_ stop there and change the read side as a separate series, but I > > think that until we do, the ordering changes on the write side aren't > > really doing that much. They're shrinking the race a little, I guess, > > but it's still very much there. > > Yeah, now that I've had a chance to look at it it seems pretty > straightforward. Probably limited to checks in prepare_pack(), and > add_pack_to_midx(), which are the lone two callbacks of > for_each_file_in_pack_dir(). Yes, that matches what I'd expect. > I'll make sure that I'm not missing anything and then send a reroll > tomorrow. Great, thanks! -Peff