From: Patrick Steinhardt Date: Tue, 01 Dec 2026 07:23:04 GMT Subject: Re: [PATCH v4 2/2] t0000: test taking over and releasing the EXPENSIVE lock Message-ID: In-Reply-To: <20261128-ks-ci-long-test-hang-fix-v4-2-f117badd2e13@gmail.com> 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. No strong blocker though from my side. Patrick