From: Junio C Hamano Date: Sat, 25 Apr 2015 04:28:39 GMT Subject: Re: [PATCH 0/5] Avoid file descriptor exhaustion in ref_transaction_commit() Message-ID: In-Reply-To: <1429875349-29736-1-git-send-email-mhagger@alum.mit.edu> Michael Haggerty writes: > In ref_transaction_commit(), close the reference lockfiles immediately > to avoid keeping too many file descriptors open at a time. This is > pretty easy, because in the first loop (where we create the locks) we > already know what, if anything, has to be written into the lockfile. Nicely analysed and beautifully executed. I like it. > This patch series applies on top of Stefan's > > c1f0ca9 refs.c: remove lock_fd from struct ref_lock (2015-04-16) > > and it fixes two tests that Stefan introduced earlier in that series. Thanks.