From owner-p4-projects Thu Aug 29 23:18:47 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9874B37B401; Thu, 29 Aug 2002 23:18:42 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 505ED37B400 for ; Thu, 29 Aug 2002 23:18:42 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 105E943E42 for ; Thu, 29 Aug 2002 23:18:42 -0700 (PDT) (envelope-from mini@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7U6IfJU064047 for ; Thu, 29 Aug 2002 23:18:41 -0700 (PDT) (envelope-from mini@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7U6IfJQ064044 for perforce@freebsd.org; Thu, 29 Aug 2002 23:18:41 -0700 (PDT) Date: Thu, 29 Aug 2002 23:18:41 -0700 (PDT) Message-Id: <200208300618.g7U6IfJQ064044@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to mini@freebsd.org using -f From: Jonathan Mini Subject: PERFORCE change 16790 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16790 Change 16790 by mini@mini_stylus on 2002/08/29 23:18:41 Comment cleanup. Affected files ... .. //depot/projects/kse/sys/kern/kern_thread.c#94 edit Differences ... ==== //depot/projects/kse/sys/kern/kern_thread.c#94 (text+ko) ==== @@ -588,9 +588,9 @@ * extra work to do before we return (e.g. for more syscalls * to complete first). If we were in a critical section, we should * just return to let it finish. Same if we were in the UTS (in - * which case the mailbox's context's busy indicator will equal the - * struct thread address). The only traps we suport will have set the - * mailbox. We will clear it here. + * which case the mailbox's context's busy indicator will be set). + * The only traps we suport will have set the mailbox. + * We will clear it here. */ int thread_userret(struct proc *p, struct ksegrp *kg, struct kse *ke, @@ -621,6 +621,11 @@ if (((td->td_flags & TDF_UPCALLING) == 0) && td->td_mailbox) { error = thread_consider_upcalling(p, kg, ke, td, frame); if (error != 0) + /* + * Failing to do the KSE operation just defaults + * back to synchonous operation, so just return from + * the syscall. + */ goto cont; } if (td->td_flags & TDF_UPCALLING) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message