From owner-freebsd-current Tue Mar 21 9:14:28 2000 Delivered-To: freebsd-current@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 61EB237B865; Tue, 21 Mar 2000 09:14:26 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id JAA81010; Tue, 21 Mar 2000 09:14:14 -0800 (PST) (envelope-from dillon) Date: Tue, 21 Mar 2000 09:14:14 -0800 (PST) From: Matthew Dillon Message-Id: <200003211714.JAA81010@apollo.backplane.com> To: Brad Knowles Cc: Mike Smith , "John W. DeBoskey" , freebsd-current@FreeBSD.ORG, Brad Chisholm Subject: Re: AMI MegaRAID lockup? not accepting commands. References: <200003210325.TAA70819@mass.cdrom.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :At 7:25 PM -0800 2000/3/20, Mike Smith wrote: : :> Not that I consider this particuarly optimal; busy-waiting for the :> controller is a terrible waste of the host CPU. A better solution would :> probably defer the command and try again a short time later, but let's :> see if this works first. : : Since this is a device driver, I guess you can't usleep() and :then check again? Is there anything else useful you could be doing :during that period of time -- other than busy waiting? : :-- : These are my opinions -- not to be taken as official Skynet policy :====================================================================== :Brad Knowles, || Belgacom Skynet SA/NV :Systems Architect, Mail/News/FTP/Proxy Admin || Rue Colonel Bourg, 124 For situations that aren't in the critical path and don't happen often, it may be beneficial to do a voluntary context switch inside the loop. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message