From mboxrd@z Thu Jan 1 00:00:00 1970 From: presotto@plan9.bell-labs.com Message-Id: <200007211315.JAA06317@cse.psu.edu> Date: Fri, 21 Jul 2000 09:15:44 -0400 To: 9fans@cse.psu.edu Subject: Re: [9fans] Kernel question: i386 test-and-set problem MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: e876c96a-eac8-11e9-9e20-41e7f4b1d025 I would have left the lock in if I could have figured out how to do it and fix the other problems. The main problem is that one side knows p and the other side knows r. If I have one lock, one side is going to have to look at something not under a lock. If I have two locks, one in r and one in p, I can't figure out how to get them both to lock in the same order.