Date: Tue, 08 Jan 2002 22:04:51 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Michael Smith <msmith@FreeBSD.ORG> Cc: Dan Moschuk <dan@FreeBSD.ORG>, "M. Warner Losh" <imp@village.org>, stable@FreeBSD.ORG Subject: Re: Hang in md driver Message-ID: <9834.1010523891@critter.freebsd.dk> In-Reply-To: Your message of "Tue, 08 Jan 2002 13:05:13 PST." <200201082105.g08L5D001648@mass.dis.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <200201082105.g08L5D001648@mass.dis.org>, Michael Smith writes: >This wouldn't do it. > >You really want to add an M_SHORTWAIT flag, and in kern/kern_malloc.c >around line 162 (in -current anyway) pass a timeout to msleep. If the >timeout expires, return NULL. The wait should be perhaps 1 second at >most. > >This would be simple to add to both -stable and -current, and since >it doesn't change the behaviour of M_WAITOK, would not have any >deleterious sideeffects. You could then work your way through the >M_WAITOK consumers, teaching the relevant ones how to deal with resource >starvation other than by deadlocking. Sounds like a great Junior Kernel Hacker task to me :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9834.1010523891>