Article View: linux.kernel.git
Article #2637Re: [PATCH v2 0/3] credential-cache: fix two races when daemons start at once
From: "Farid Zakaria"
Date: Sun, 08 Nov 2026 04:27
Date: Sun, 08 Nov 2026 04:27
25 lines
12010 bytes
12010 bytes
On Sat Nov 7, 2026 at 5:56 PM PST, Junio C Hamano wrote: > "Farid Zakaria" <farid.m.zakaria@gmail.com> writes: > >> It was not clear to me as someone unfamiliar with the codebase >> whether the complexity of handling it was worth it. It seemed like >> it could only occur during upgrades (old git version). My comment >> was meant to say: I did not address it but I can if we think it's >> necessary. > > I am not sure if I follow your "upgrades (old git version)" > reference. Doesn't a reasonably serious installation of any > software have a babysitter process to notice a dead daemon to > automatically respawn to keep the service running? > > If you are unfamiliar with the codebase, how would you know which of > the careful arrangements the existing code makes can be ignored? If > it is not important, what would the reason be for reviewers to spend > time and effort to write a message to point it out for you? I'm not sure how you want me to respond here; I made an attempt at a fix for an issue I came across within the context I felt comfortable to contribute. I tried to capture that within my cover letter.
Technical Details
Message-ID:
<DMPJNBIHZB35.1EJF34BS6RR9@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74817-linux-kernel-git=dewy.ruReferences:
<20261101-fz-credential-cache-race-v1-0-28f0bac51e11@gmail.com> <20261104-fz-credential-cache-race-v2-0-ddccd0831eba@gmail.com> <xmqqik2bybfk.fsf@gitster.g> <DMOCMXGWSKK6.13UR9RHCJY3SI@gmail.com> <xmqq33tc84rk.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74817-linux-kernel-git=dewy.ru
From: farid.m.zakaria@gmail.com ("Farid Zakaria")
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2 0/3] credential-cache: fix two races when daemons
start at once
Date: Sat, 07 Nov 2026 20:27:43 -0800
Organization: Usenet Network
Message-ID: <DMPJNBIHZB35.1EJF34BS6RR9@gmail.com>
References: <20261101-fz-credential-cache-race-v1-0-28f0bac51e11@gmail.com>
<20261104-fz-credential-cache-race-v2-0-ddccd0831eba@gmail.com>
<xmqqik2bybfk.fsf@gitster.g> <DMOCMXGWSKK6.13UR9RHCJY3SI@gmail.com>
<xmqq33tc84rk.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="60571"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:oxbcsv9iuM9BR6fQlLYg1eegVVw= sha256:Jb9AuVZYtPDo/eS0q2A6G6hTZbIW4jYsg2huDD85uXY=
sha1:3u3abBtzWjrD25bs9KIdXLmb+gk= sha256:+9DGf9YV27y6zburhFp/0i2byHIhmHGWfvmp7+7mALM=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id DC20A113512; Sun, 8 Nov 2026 07:28:02 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id aZqkgcRciYll;
Sun, 8 Nov 2026 07:27:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-74817-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 7B96911350F; Sun, 8 Nov 2026 07:27:51 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 8F0593F436; Sun, 8 Nov 2026 04:27:49 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794112067;
b=DwUzVVNEBNgsTtQXGHmsSwZfMTocMLZtD1Z5CYk7tR/ZEIor3LOrL7OLS2i8BeUoUtbh
Glmb6yzKPG8Nxlo75lMDwg7DY/HI+GLiX/7/xtHXeTeEXMwVpNeGhG3haNYWYG+f33FVP
6yzSvOrcruOJCeYZUVK5U1P3domnZbreSnMI9Zx1dT+SDddcqS+kK5i1ivkNsBTXW72qk
bWvGQ9Nt/g+Srsh8Q/dXPZ3VPKPbGDeEzWj92SxV/2Ub7lbm/NjZxZ4lvoVambEYRc10e
2pqA7ttfcZ1YcrOBh1wIjJAEKnmwh2Yb2cVlhSu2gA04Tnyum6YjR7K3+uyaz7Q2Grg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794112067;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
Received:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:Mime-Version:
Content-Transfer-Encoding:Content-Type:Date:Message-Id:From:To:Cc:
Subject:X-Mailer:References:In-Reply-To;
bh=wn/1Fv8ia0bNzr15dqUDhO97zwJk1F6lHnmRv72+CgQ=;
b=nApI7DT33JD/Wyw61pIx2muEpO93k8Fl/nPu3XXsVTjk2xOT4K/NGvDJTpbtJfUr7a9R
1cMzFRBLnG0UfFFQgmX/op0DPnenIW/R+H8U/kfDt8zMtXQI7nCZAle471xX3s+VhLRVM
8Z8tOgmIFuDGETWTq90LXhTo/eUCWnBy/IKlqx6OtSI8DJfEaHwuse/iGLYxU+TOFM6Fg
vp1szIe7cH7+g2vQMVQkCE374y7Z0WwN2SG9xpdyrQK0pQsVXvxO2R3ls1guXlGGEbDDT
a6naha3GOYB7ecXyWn6Rx/xyya/lbqw1b4bxF1J2+yb543QuiJDoNhHdQNCk5huIUKA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Eq1nhF0K;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 09AF6606A321;
Sun, 8 Nov 2026 04:27:47 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Eq1nhF0K
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.54
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794112066;
b=IOU+VrwhHoRnNm4vFR5vEPDWV4tbODVwpLtJoWJZ2uV2EJV4GXUQN+4JahcLlb6hsRt+
ZoLRH/S0sfBB9tW/UlBw8ANh8nQddtIdhu3K9qqGj5XPyiEDrdHXLIuWSNhT63pyQdhUg
Xz4KhVe+GZOW7dnILZOCzxchYKqUfUfPLjrnffphpEFNe7hWacFMAJoj6nwPG0KXhw578
gU+AvGGCONJ5JmO/H7q7h0mcGD7jHvqa9QGjsQAG8kBtk9fGrn0q5HOMPQr1FYUUEAUez
Rofh4uBJYpW2Q0PnDSx8lUKKeW73C4cPjrOxbZDgkU+ix3C0ld5xHgNoutBkfN/MQ1Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794112066;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Mime-Version:
Content-Transfer-Encoding:Content-Type:Date:Message-Id:From:To:Cc:
Subject:X-Mailer:References:In-Reply-To;
bh=wn/1Fv8ia0bNzr15dqUDhO97zwJk1F6lHnmRv72+CgQ=;
b=HK0m79bJyYlwleQWtXoBivPbpmH+0ZVrpFP61ToVxNziG4TIKyrHtXJVq0hZdLkjKVT6
ECyXi/Byoj0ZVVoM7x5nJL2M0iH6+eNinNSWWbSHbNzqOcgQ7gDnHEvuwOa4HkOTGSyg0
CpYGWl0p3xobPeWKjq9iqnS1BB+ziyJrQqh8231naIoeaOKcnhfA94G6TBXvGsM6D7uKY
6jbFoiHPrH8U/fVHp8YOW+zkihswzOof5DZrtOuAhMXZ3disUOBaigPGtxc4xZjDW7vyR
GBAWBXGhJT99IvA3QPa6Kpo1SGUEzj+SBdycvC/dR+Dny/3mOChFyKP/extYdb2JJ0w==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Eq1nhF0K;
arc=none smtp.remote-ip=74.125.82.54
X-Received: from mail-dl1-f54.google.com (mail-dl1-f54.google.com [74.125.82.54])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5A16606A31A
for <git@vger.kernel.org>; Sun, 8 Nov 2026 04:27:45 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org C5A16606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dl1-f54.google.com with SMTP id a92af1059eb24-1adbf62dd31so143942c88.0
for <git@vger.kernel.org>; Sat, 07 Nov 2026 20:27:45 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794112065; x=1794716865; darn=vger.kernel.org;
h=in-reply-to:references:subject:cc:to:from:message-id:date
:content-type:content-transfer-encoding:mime-version:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=wn/1Fv8ia0bNzr15dqUDhO97zwJk1F6lHnmRv72+CgQ=;
b=Eq1nhF0KwHVrqZFewjrjhdrhgksgm/CrZ18zw320x3rQ5bSt3u4sAmxNJC9M+vnKnq
FSn5rNCE5642re+qa4W9/ex5zXV5azblPDzIpnXuhbGB1nj9fP5IfInw5rYOl2NRjGu0
lgl2adv/EAZhE15LRfbhfYmgi/uXMTIdtyJ+e8z+OCnrxBBLCNlB1zCnieM68jmmovtU
KqtDq7IF7iuYibosLl4OPkyyJw+7qKmrvIrkQy9w9z6EtwKwv0zQd7pK894ybSJ624wP
FMwBhkyXCd4AGk9ZjN3DRIMFwCx7QKakXqahJ+Pt0Whk+9yBQS1h3y9puSWsPK587jFP
Z0Lg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794112065; x=1794716865;
h=in-reply-to:references:subject:cc:to:from:message-id:date
:content-type:content-transfer-encoding:mime-version:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=wn/1Fv8ia0bNzr15dqUDhO97zwJk1F6lHnmRv72+CgQ=;
b=KhsXr/sGIyaHUQbnOK9nXBgdZ0kydogv351nDe9LLXGGHss9l4uSjxsnlCKVlibYGg
1EsblMi0yYFYiG0/dDMpz+Moy/vbJ38VpWIzRLqXdOKufdFy8QApac5kGNtmHitU8H/I
t0WatbbTD3X/A+itRBjCNBFUABZOTzAkY1zlqMY5BgvSoCMVAgjuv0byFB3ehBsmZgLn
ZRd6zgemdZVyRnuAXOyy2EyhGyk9GFnI3xMrdw3LXin9iCjt7FUXA0aLkAQbKg+qDUHO
rp1W4IoJT09KhAsBEzPZhqzwBKPS9Fmp4NewBqYF4qGFf2Dpv+Jvb3nmBvlfCSntNKNb
tP8g==
X-Gm-Message-State: APuU4Z9+F0uD8/2bSFdwIvaoDiwduFNgpU/TbTnBmB0z0bIT9i7VweJB
LhzPs3A1f6L4YqaD0oJ0vf+7NSvO0i/bGu6uVAnne2+9iaBHXKorR6tV
X-Gm-Gg: AYBFou1OEe2wNLMufZXpg4OKWzVbg/8vHTA7Kz48YWODZDrQxXK515237bR8/BQvjPH
EeBlba4gcTmGJl3xgInMbBWRWJ9zQGjfq04wUINYeSNx3b4AdWb9T80jB7aHHaxPYnCZUzKk9Bn
lFtlQlsmRw6+V819uvbTC+OfP6/nTS3cC1I1/fpLVrjOAzUb3MPe7MKqFwdFOASWm8kCfq1FVz5
+rIntWCBqFxJnp9NSNSDLYcKoqd67/u5QzuRVpTL56MhsyTFypn0SXMPzTfz6M9e5ns6/4/GVbX
NNqxVJ4HuS3CUguwsTrHzX3J5z+ulwG/D3jsyAv4NcFl9W6v+AzMzBCbfPUcR5Lvab5dVNM82Y1
F4hYMmLk9O2qN9NT4B5uvkiE+k/uUCWy+hOXirUhTvcJEJAcjn7SuN+Ctj1TWocFbKllrk8cA+Z
L3fvqnVQOK6a2eFjHzcI83ropEJTH7mWrpdvNt1M0OBoJkrz2/c8mAqlrzYVDIQxDcWBxYeG2oU
UFe5CI7vA6vbRsgi3sw30xbo5zvWjg7FvOOMAeY7yIQI/zHwBERtFlsefwYRbdUnprrIwvZugQf
HPBB3GUfTbZHTFdesnayTpSPuBP/pYAr
X-Received: by 2002:a05:701b:2095:10b0:151:2e62:fe8a with SMTP id a92af1059eb24-1b39fece2edmr813368c88.40.1794112064828;
Sat, 07 Nov 2026 20:27:44 -0800 (PST)
X-Received: from localhost ([73.222.46.22])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1b3755e936bsm3309734c88.6.2026.11.07.20.27.43
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Sat, 07 Nov 2026 20:27:44 -0800 (PST)
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list
X-Cc: <git@vger.kernel.org>, "Jeff King" <peff@peff.net>, "Patrick Steinhardt"
<ps@pks.im>, "M Hickford" <mirth.hickford@gmail.com>, "Johannes Schindelin"
<Johannes.Schindelin@gmx.de>, "Jeff Hostetler" <jeffhostetler@github.com>
X-Mailer: aerc 0.22.0
X-In-Reply-To: <xmqq33tc84rk.fsf@gitster.g>