From owner-freebsd-current Fri Apr 3 12:24:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA14157 for freebsd-current-outgoing; Fri, 3 Apr 1998 12:24:09 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA14128 for ; Fri, 3 Apr 1998 12:24:00 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id WAA03492; Fri, 3 Apr 1998 22:21:11 +0200 (CEST) cc: "Alok K. Dhir" , ache@nagual.pp.ru, Alok_K._Dhir/Person/World_Bank@notes.worldbank.org, current@FreeBSD.ORG, adkin003@tc.umn.edu Subject: Re: Working patch *with* splhigh() (Was Re: More info RE: X slowdown in -current) In-reply-to: Your message of "Fri, 03 Apr 1998 22:15:37 +0200." <3445.891634537@critter.freebsd.dk> Date: Fri, 03 Apr 1998 22:21:11 +0200 Message-ID: <3490.891634871@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <3445.891634537@critter.freebsd.dk>, Poul-Henning Kamp writes: And here is another one to try: Move the splhigh two lines up: ncoll = nselcoll; p->p_flag |= P_SELECT; error = selscan(p, ibits, obits, uap->nd); >>>> s = splhigh(); >>>> if (error || p->p_retval[0]) { >>>> splx(s); >>>> goto done; >>>> } if (term && term <= ticks) { splx(s); goto done; } timo = term ? term - ticks : 0; if ((p->p_flag & P_SELECT) == 0 || nselcoll != ncoll) { splx(s); -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "Drink MONO-tonic, it goes down but it will NEVER come back up!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message