From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 30001 invoked from network); 15 Dec 2021 00:03:19 -0000 Received: from 4ess.inri.net (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 15 Dec 2021 00:03:19 -0000 Received: from wopr.sciops.net ([216.126.196.60]) by 4ess; Tue Dec 14 18:56:10 -0500 2021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sciops.net; s=20210706; t=1639526159; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=BWJtkVRoh4yBZDzLEjV3/YGXtwRcXfRi6qbxXS9fV14=; b=X0huScPxBrps3z4cViI4BSoj61eaeTQUgbhED99lIi5WFIGxjY5iZ+h3Bw8QpptIvKuTZl vlDsze3LSx9n1QADochqoQWawWxd6+eZun7dX/Z2SnsSxCmveZMLFZHmKd+G31WItqDg0k IEyX6V8yocT7CIHzdgc7A9tBuV5ZlbY= Received: by wopr.sciops.net (OpenSMTPD) with ESMTPSA id 0a57aa88 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO) for <9front@9front.org>; Tue, 14 Dec 2021 15:55:58 -0800 (PST) Message-ID: <96C08F9AEB121C6E156203FD9451E723@wopr.sciops.net> Date: Wed, 15 Dec 2021 00:55:56 +0100 From: qwx@sciops.net To: 9front@9front.org In-Reply-To: <5FA0662D627A99E4DF5914FDD6E872E7@wopr.sciops.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: responsive object-oriented realtime dependency HTML over ORM factory-oriented realtime generator Subject: Re: [9front] aux/wacom: possible race Reply-To: 9front@9front.org Precedence: bulk On Mon Dec 6 02:57:05 +0100 2021, qwx@sciops.net wrote: > Hello, > > I've been playing with aux/wacom and aux/tablet on x61t. > aux/tablet often crashes with a `no concurrent reads, please' > error mid-drawing. From what I can tell both of these > programs are early 9front additions. Has anyone else seen > these errors? > > I think that the issue is that nothing prevents the .req > field of each Reader from being modified at the same time > as a read(2) comes in, so at some point a new read could > check the field before sendout() can clear it. The patch > below seems to work. > > What do you think? > > Thanks, > qwx After testing, the errors no longer occur. I believe that this is the right fix, and have pushed it. Cheers! qwx