Re: [PATCH v2 26/29] clear_packed_ref_cache(): don't protest if the lock is held
- From
Jeff King <peff@peff.net>
- Date
- Jun 23, 2017, 19:49 UTC
- Message-ID
- <20170623194942.brzsuesttj4jqy2j@sigill.intra.peff.net>
- In-Reply-To
- <585946fc1191c540768206cdf59c0c6101583691.1498200513.git.mhagger@alum.mit.edu>
On Fri, Jun 23, 2017 at 09:01:44AM +0200, Michael Haggerty wrote:
> The existing callers already check that the lock isn't held just > before calling `clear_packed_ref_cache()`, and in the near future we > want to be able to call this function when the lock is held.
OK. It's not immediately obvious that this is true, because some of the relationships are a bit buried, but I double-checked and I think it is the case.
-Peff