From: Pushkar Singh Date: Thu, 04 Jun 2026 10:19:21 GMT Subject: Re: [PATCH] transport-helper: fix TSAN race in transfer_debug() Message-ID: In-Reply-To: Hi Junio, On Thu, Jun 4, 2026 at 6:39 AM Junio C Hamano wrote: > Would it be possible that transfer_debug_enabled is still -1 at this > point? We would proceed in such a case, which is a bit different from > what would have happened in the original. > > Perhaps > > if (transfer_debug_enabled <= 0) > return; > > is what you want? I dunno. You're right. The original code would never proceed while the value was still negative, whereas my change would. I'll update it to use <= 0 and send a v2. Thanks, Pushkar