From owner-cvs-all@FreeBSD.ORG Mon Jul 21 18:43:18 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B92151065675; Mon, 21 Jul 2008 18:43:18 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9A9038FC27; Mon, 21 Jul 2008 18:43:18 +0000 (UTC) (envelope-from jhb@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 m6LIhIaF064175; Mon, 21 Jul 2008 18:43:18 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.2/8.14.1/Submit) id m6LIhI71064174; Mon, 21 Jul 2008 18:43:18 GMT (envelope-from jhb@repoman.freebsd.org) Message-Id: <200807211843.m6LIhI71064174@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jhb@repoman.freebsd.org using -f From: John Baldwin Date: Mon, 21 Jul 2008 18:43:02 +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/dev/mpt mpt_raid.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2008 18:43:18 -0000 jhb 2008-07-21 18:43:02 UTC FreeBSD src repository Modified files: sys/dev/mpt mpt_raid.c Log: SVN rev 180668 on 2008-07-21 18:43:02Z by jhb Allocate a single CCB at the start of the main loop of the RAID monitoring kthread of the mpt(4) driver that hangs around for the entire lifetime of the thread. Previously the driver would allocate a new CCB using M_WAITOK with a lock held each time it updated its state. While here, use the CAM API for allocating a CCB rather than raw malloc(9). Reviewed by: scottl MFC after: 1 week Revision Changes Path 1.18 +4 -4 src/sys/dev/mpt/mpt_raid.c