From owner-svn-src-projects@FreeBSD.ORG Fri Apr 17 05:58:12 2015 Return-Path: Delivered-To: svn-src-projects@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 5BB11412; Fri, 17 Apr 2015 05:58:12 +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 4A63C5FA; Fri, 17 Apr 2015 05:58:12 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3H5wCwc056473; Fri, 17 Apr 2015 05:58:12 GMT (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3H5wC20056472; Fri, 17 Apr 2015 05:58:12 GMT (envelope-from glebius@FreeBSD.org) Message-Id: <201504170558.t3H5wC20056472@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: glebius set sender to glebius@FreeBSD.org using -f From: Gleb Smirnoff Date: Fri, 17 Apr 2015 05:58:12 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r281641 - projects/ifnet/sys/net X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Apr 2015 05:58:12 -0000 Author: glebius Date: Fri Apr 17 05:58:11 2015 New Revision: 281641 URL: https://svnweb.freebsd.org/changeset/base/281641 Log: Merge r281528 from head. Modified: projects/ifnet/sys/net/if_polling.c Modified: projects/ifnet/sys/net/if_polling.c ============================================================================== --- projects/ifnet/sys/net/if_polling.c Fri Apr 17 05:55:07 2015 (r281640) +++ projects/ifnet/sys/net/if_polling.c Fri Apr 17 05:58:11 2015 (r281641) @@ -387,6 +387,9 @@ netisr_pollmore() struct timeval t; int kern_load; + if (poll_handlers == 0) + return; + mtx_lock(&poll_mtx); if (!netisr_pollmore_scheduled) { mtx_unlock(&poll_mtx); @@ -444,6 +447,9 @@ netisr_poll(void) int i, cycles; enum poll_cmd arg = POLL_ONLY; + if (poll_handlers == 0) + return; + mtx_lock(&poll_mtx); if (!netisr_poll_scheduled) { mtx_unlock(&poll_mtx);