From: Kaartic Sivaraam Date: Tue, 01 Dec 2026 08:49:46 GMT Subject: Re: [PATCH v4 2/2] t0000: test taking over and releasing the EXPENSIVE lock Message-ID: <8a6e7bff-50e0-43dd-81b3-b3b44c332732@gmail.com> In-Reply-To: On 12/1/26 12:53, Patrick Steinhardt wrote: > On Sat, Nov 28, 2026 at 08:28:00PM +0530, Kaartic Sivaraam wrote: >> The previous commit serializes EXPENSIVE tests with a lock that a >> waiter takes over when its holder was killed, and that the EXIT trap >> releases when a script dies while holding it. >> >> Add subtests checking that: >> >> - a lock left by a dead process is taken over, held while the test >> runs, and released afterwards; >> >> - a lock carrying the script's own PID, which can only be left by a >> dead holder whose PID was reused, is taken over; >> >> - a script exiting in the middle of an EXPENSIVE test does not leave >> the lock behind. >> >> None of them has to wait, as a stale lock is cleared without polling. > > I would have folded this into the preceding commit, so that it's easier > for the reader to connect expected behaviour with the new logic that > you're adding. > I mostly kept it separate to avoid blocking the main patch in case we get into some side discussion related to this test patch. I haven't seen much thoughts / suggestions on this. So, I think I can squash it in now. -- Sivaraam