9fans archive / 2000 / 07 / 541 prev next
From: presotto@pla...
Subject: Kernel question: i386 test-and-set problem
Date: Fri, 21 Jul 2000 09:15:44 -0400
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.