From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 4395C782CD for ; Thu, 29 Apr 2021 15:15:06 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 3FE2C1D413 for ; Thu, 29 Apr 2021 15:15:06 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 527231D407 for ; Thu, 29 Apr 2021 15:15:05 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 2AD5D464D6 for ; Thu, 29 Apr 2021 15:15:05 +0200 (CEST) Date: Thu, 29 Apr 2021 15:15:04 +0200 From: Wolfgang Bumiller To: Dietmar Maurer Cc: Proxmox Backup Server development discussion Message-ID: <20210429131504.ue52rfau3wdff7za@wobu-vie.proxmox.com> References: <20210422140213.30989-1-w.bumiller@proxmox.com> <20210422140213.30989-14-w.bumiller@proxmox.com> <6e542767-3117-95f5-c1e8-d2a28427c08a@proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6e542767-3117-95f5-c1e8-d2a28427c08a@proxmox.com> User-Agent: NeoMutt/20180716 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.023 Adjusted score from AWL reputation of From: address KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pbs-devel] [PATCH v2 backup 13/27] add node config X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2021 13:15:06 -0000 On Thu, Apr 29, 2021 at 02:40:39PM +0200, Dietmar Maurer wrote: > We use replace_file() to atomically replace the config file, so > why do we need a read_lock()? > > A) We don't need it => remove it for your patch series > > B) We need it for some reason => We need to add that for other config files > too? Sorry, saw this too late. Yeah, the read lock helper can be dropped.