From owner-cvs-src-old@FreeBSD.ORG Fri Jun 10 18:56:18 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CFFE10656B9 for ; Fri, 10 Jun 2011 18:56:18 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 69F9F8FC08 for ; Fri, 10 Jun 2011 18:56:18 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p5AIuI8Q056312 for ; Fri, 10 Jun 2011 18:56:18 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p5AIuIDi056311 for cvs-src-old@freebsd.org; Fri, 10 Jun 2011 18:56:18 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <201106101856.p5AIuIDi056311@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Fri, 10 Jun 2011 18:55:58 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/kern subr_smp.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jun 2011 18:56:18 -0000 jhb 2011-06-10 18:55:58 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/kern subr_smp.c Log: SVN rev 222938 on 2011-06-10 18:55:58Z by jhb MFC 222032: Fix a race in the SMP rendezvous code. Specifically, the write by the last CPU to to finish the rendezvous action may become visible to different CPUs at different times. As a result, the CPU that initiated the rendezvous may exit the rendezvous and drop the lock allowing another rendezvous to be initiated on the same CPU or a different CPU. In that case the exit sentinel may be cleared before all CPUs have noticed causing those CPUs to hang forever. Workaround this by using a generation count to notice when this race occurs and to exit the rendezvous in that case. Revision Changes Path 1.214.2.8 +48 -15 src/sys/kern/subr_smp.c