From owner-cvs-src@FreeBSD.ORG Wed Feb 6 00:04:10 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05E9316A418; Wed, 6 Feb 2008 00:04:10 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id F2DC413C461; Wed, 6 Feb 2008 00:04:09 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m160495U028895; Wed, 6 Feb 2008 00:04:09 GMT (envelope-from attilio@repoman.freebsd.org) Received: (from attilio@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m160494G028894; Wed, 6 Feb 2008 00:04:09 GMT (envelope-from attilio) Message-Id: <200802060004.m160494G028894@repoman.freebsd.org> From: Attilio Rao Date: Wed, 6 Feb 2008 00:04:09 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/kern kern_timeout.c subr_lock.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2008 00:04:10 -0000 attilio 2008-02-06 00:04:09 UTC FreeBSD src repository Modified files: sys/kern kern_timeout.c subr_lock.c Log: Really, no explicit checks against against lock_class_* object should be done in consumers code: using locks properties is much more appropriate. Fix current code doing these bogus checks. Note: Really, callout are not usable by all !(LC_SPINLOCK | LC_SLEEPABLE) primitives like rmlocks doesn't implement the generic lock layer functions, but they can be equipped for this, so the check is still valid. Tested by: matteo, kris (earlier version) Reviewed by: jhb Revision Changes Path 1.109 +2 -2 src/sys/kern/kern_timeout.c 1.22 +2 -2 src/sys/kern/subr_lock.c