From owner-svn-src-projects@freebsd.org Sat Jul 9 17:48:46 2016 Return-Path: Delivered-To: svn-src-projects@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 4877FB83BD8 for ; Sat, 9 Jul 2016 17:48:46 +0000 (UTC) (envelope-from hselasky@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 1B59A1C37; Sat, 9 Jul 2016 17:48:46 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u69Hmjbr028973; Sat, 9 Jul 2016 17:48:45 GMT (envelope-from hselasky@FreeBSD.org) Received: (from hselasky@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u69HmjaZ028972; Sat, 9 Jul 2016 17:48:45 GMT (envelope-from hselasky@FreeBSD.org) Message-Id: <201607091748.u69HmjaZ028972@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: hselasky set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky Date: Sat, 9 Jul 2016 17:48:45 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r302501 - projects/hps_head/sys/kern 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.22 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: Sat, 09 Jul 2016 17:48:46 -0000 Author: hselasky Date: Sat Jul 9 17:48:45 2016 New Revision: 302501 URL: https://svnweb.freebsd.org/changeset/base/302501 Log: Mutex protected callouts are always cancelable. Modified: projects/hps_head/sys/kern/kern_timeout.c Modified: projects/hps_head/sys/kern/kern_timeout.c ============================================================================== --- projects/hps_head/sys/kern/kern_timeout.c Sat Jul 9 17:11:54 2016 (r302500) +++ projects/hps_head/sys/kern/kern_timeout.c Sat Jul 9 17:48:45 2016 (r302501) @@ -1042,7 +1042,7 @@ callout_restart_async(struct callout *c, } else if (cc_exec_cancel(cc, direct) == false || cc_exec_restart(cc, direct) == true) { cc_exec_cancel(cc, direct) = true; - if (coa != NULL) + if (coa != NULL || c->c_lock != NULL) retval = CALLOUT_RET_CANCELLED; else retval = CALLOUT_RET_DRAINING;