From owner-svn-src-all@FreeBSD.ORG Thu Feb 11 04:22:40 2010 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from alona.my.domain (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 47858106566B; Thu, 11 Feb 2010 04:22:39 +0000 (UTC) (envelope-from davidxu@freebsd.org) Message-ID: <4B73860D.1010808@freebsd.org> Date: Thu, 11 Feb 2010 12:22:37 +0800 From: David Xu User-Agent: Thunderbird 2.0.0.21 (X11/20090522) MIME-Version: 1.0 To: Alexander Leidinger References: <201002080731.o187V5Pk072517@svn.freebsd.org> <20100210165213.95990l8r0b7latrk@webmail.leidinger.net> In-Reply-To: <20100210165213.95990l8r0b7latrk@webmail.leidinger.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, mono@FreeBSD.org Subject: Re: svn commit: r203657 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Feb 2010 04:22:40 -0000 Alexander Leidinger wrote: > Quoting David Xu (from Mon, 8 Feb 2010 07:31:05 > +0000 (UTC)): > >> Author: davidxu >> Date: Mon Feb 8 07:31:05 2010 >> New Revision: 203657 >> URL: http://svn.freebsd.org/changeset/base/203657 >> >> Log: >> Set waiters flag before checking semaphore's counter, >> otherwise we might lose a wakeup. Tested on postgresql database >> server. > > Uhm... if I ktrace a hanging process and I see some semop()s (I assume > it is waiting on some event to happen), where on Linux this process is > working correctly, then I would like to test this patch to see if the > process still has the same problem? > > Or differently asked: this affects the operation of semop(2)? > > Bye, > Alexander. > This implementation uses umtx, the one in RELENG_8 uses semop() syscall. They are unrelated.