From owner-freebsd-arch Mon Sep 11 23: 1:28 2000 Delivered-To: freebsd-arch@freebsd.org Received: from smtp02.iafrica.com (smtp02.iafrica.com [196.7.0.140]) by hub.freebsd.org (Postfix) with ESMTP id 9770137B423 for ; Mon, 11 Sep 2000 23:01:24 -0700 (PDT) Received: from [196.7.18.138] (helo=grimreaper.grondar.za ident=root) by smtp02.iafrica.com with esmtp (Exim 1.92 #1) id 13Yj80-000Pph-00; Tue, 12 Sep 2000 08:01:09 +0200 Received: from grimreaper.grondar.za (mark@localhost [127.0.0.1]) by grimreaper.grondar.za (8.11.0/8.11.0) with ESMTP id e8C611X75116; Tue, 12 Sep 2000 08:01:01 +0200 (SAST) (envelope-from mark@grimreaper.grondar.za) Message-Id: <200009120601.e8C611X75116@grimreaper.grondar.za> To: Jason Evans Cc: Greg Lehey , John Baldwin , FreeBSD-arch@FreeBSD.org Subject: Re: cvs commit: src/sys/conf files src/sys/sys random.h src/sys/dev/randomdev hash.c hash.h harvest.c randomdev.c yarrow.c yarro References: <20000911171819.A31089@blitz.canonware.com> In-Reply-To: <20000911171819.A31089@blitz.canonware.com> ; from Jason Evans "Mon, 11 Sep 2000 17:18:19 MST." Date: Tue, 12 Sep 2000 08:01:00 +0200 From: Mark Murray Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Mark's changes to randomdev are very straight-forward, and they use a mutex > exactly as a mutex should be used (though a condition variable will help > make things even cleaner, once they're available). This is good to know; thanks! :-) > A general discussion of high level locking strategy is in order, but in my > opinion, Mark's code is not an appropriate harbinger, since there's > absolutely nothing wrong with the approach he took, regardless of the > results of high level discussion. The issue we need to decide on is how to > avoid bad interactions (read deadlock/livelock) between mutex hierarchies, > but the randomdev mutex basically stands alone, so isn't subject to those > discussions. I kinda winged it on this one, but I had the assistance of folk online. It would be good to have some hardcore documentation. M -- Mark Murray Join the anti-SPAM movement: http://www.cauce.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message