From owner-svn-src-all@FreeBSD.ORG Fri Jan 9 07:32:44 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 31D5EA0C; Fri, 9 Jan 2015 07:32:44 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1E0ABDAB; Fri, 9 Jan 2015 07:32:44 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t097WhTw097531; Fri, 9 Jan 2015 07:32:43 GMT (envelope-from dchagin@FreeBSD.org) Received: (from dchagin@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t097WhBZ097530; Fri, 9 Jan 2015 07:32:43 GMT (envelope-from dchagin@FreeBSD.org) Message-Id: <201501090732.t097WhBZ097530@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: dchagin set sender to dchagin@FreeBSD.org using -f From: Dmitry Chagin Date: Fri, 9 Jan 2015 07:32:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r276880 - stable/10/sys/compat/linux X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 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: Fri, 09 Jan 2015 07:32:44 -0000 Author: dchagin Date: Fri Jan 9 07:32:43 2015 New Revision: 276880 URL: https://svnweb.freebsd.org/changeset/base/276880 Log: MFC r276550: Remove Giant from linux_getcwd() due to VFS is MPSAFE now. Modified: stable/10/sys/compat/linux/linux_getcwd.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/compat/linux/linux_getcwd.c ============================================================================== --- stable/10/sys/compat/linux/linux_getcwd.c Fri Jan 9 06:39:07 2015 (r276879) +++ stable/10/sys/compat/linux/linux_getcwd.c Fri Jan 9 07:32:43 2015 (r276880) @@ -450,11 +450,8 @@ linux_getcwd(struct thread *td, struct l * limit it to N/2 vnodes for an N byte buffer. */ - mtx_lock(&Giant); error = linux_getcwd_common (td->td_proc->p_fd->fd_cdir, NULL, &bp, path, len/2, GETCWD_CHECK_ACCESS, td); - mtx_unlock(&Giant); - if (error) goto out; lenused = bend - bp;