From owner-cvs-src-old@FreeBSD.ORG Mon Nov 22 12:42:46 2010 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 5E1C510656A3 for ; Mon, 22 Nov 2010 12:42:46 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 4B9E68FC19 for ; Mon, 22 Nov 2010 12:42:46 +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 oAMCgk0w020957 for ; Mon, 22 Nov 2010 12:42:46 GMT (envelope-from netchild@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oAMCgkBt020956 for cvs-src-old@freebsd.org; Mon, 22 Nov 2010 12:42:46 GMT (envelope-from netchild@repoman.freebsd.org) Message-Id: <201011221242.oAMCgkBt020956@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to netchild@repoman.freebsd.org using -f From: Alexander Leidinger Date: Mon, 22 Nov 2010 12:42:32 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/linux linux_emul.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: Mon, 22 Nov 2010 12:42:46 -0000 netchild 2010-11-22 12:42:32 UTC FreeBSD src repository Modified files: sys/compat/linux linux_emul.c Log: SVN rev 215675 on 2010-11-22 12:42:32Z by netchild Do not take the process lock. The assignment to u_short inside the properly aligned structure is atomic on all supported architectures, and the thread that should see side-effect of assignment is the same thread that does assignment. Use a more appropriate conditional to detect the linux ABI. Suggested by: kib X-MFC: together with r215664 Revision Changes Path 1.25 +3 -5 src/sys/compat/linux/linux_emul.c