From owner-svn-src-stable@freebsd.org Wed Nov 8 12:07:03 2017 Return-Path: Delivered-To: svn-src-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D99AE51258; Wed, 8 Nov 2017 12:07:03 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 EBFEB7749B; Wed, 8 Nov 2017 12:07:02 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vA8C714R044399; Wed, 8 Nov 2017 12:07:01 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vA8C71xd044398; Wed, 8 Nov 2017 12:07:01 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201711081207.vA8C71xd044398@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Wed, 8 Nov 2017 12:07:01 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r325548 - stable/11/sys/dev/hwpmc X-SVN-Group: stable-11 X-SVN-Commit-Author: kib X-SVN-Commit-Paths: stable/11/sys/dev/hwpmc X-SVN-Commit-Revision: 325548 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Nov 2017 12:07:03 -0000 Author: kib Date: Wed Nov 8 12:07:01 2017 New Revision: 325548 URL: https://svnweb.freebsd.org/changeset/base/325548 Log: MFC r325274: There is no use for dropping Giant in the pmc syscall. Modified: stable/11/sys/dev/hwpmc/hwpmc_mod.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/dev/hwpmc/hwpmc_mod.c ============================================================================== --- stable/11/sys/dev/hwpmc/hwpmc_mod.c Wed Nov 8 12:03:11 2017 (r325547) +++ stable/11/sys/dev/hwpmc/hwpmc_mod.c Wed Nov 8 12:07:01 2017 (r325548) @@ -2860,8 +2860,6 @@ pmc_syscall_handler(struct thread *td, void *syscall_a PMC_GET_SX_XLOCK(ENOSYS); - DROP_GIANT(); - is_sx_downgraded = 0; is_sx_locked = 1; @@ -4033,8 +4031,6 @@ pmc_syscall_handler(struct thread *td, void *syscall_a if (error) atomic_add_int(&pmc_stats.pm_syscall_errors, 1); - - PICKUP_GIANT(); return (error); }