From owner-cvs-src@FreeBSD.ORG Fri Jul 1 15:21:30 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C93D16A41C; Fri, 1 Jul 2005 15:21:30 +0000 (GMT) (envelope-from avatar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6825043D1D; Fri, 1 Jul 2005 15:21:30 +0000 (GMT) (envelope-from avatar@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j61FLUXh090036; Fri, 1 Jul 2005 15:21:30 GMT (envelope-from avatar@repoman.freebsd.org) Received: (from avatar@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j61FLUIU090035; Fri, 1 Jul 2005 15:21:30 GMT (envelope-from avatar) Message-Id: <200507011521.j61FLUIU090035@repoman.freebsd.org> From: Tai-hwa Liang Date: Fri, 1 Jul 2005 15:21:30 +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/cam cam_periph.c cam_queue.c cam_sim.c cam_xpt.c cam_xpt_periph.h src/sys/cam/scsi scsi_low.c scsi_sa.c scsi_ses.c scsi_targ_bh.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: Fri, 01 Jul 2005 15:21:30 -0000 avatar 2005-07-01 15:21:30 UTC FreeBSD src repository Modified files: sys/cam cam_periph.c cam_queue.c cam_sim.c cam_xpt.c cam_xpt_periph.h sys/cam/scsi scsi_low.c scsi_sa.c scsi_ses.c scsi_targ_bh.c Log: - Providing fine-grained malloc statistic by replacing M_DEVBUF with module-specific malloc types. These should help us to pinpoint the possible memory leakage in the future. - Implementing xpt_alloc_ccb_nowait() and replacing all malloc/free based CCB memory management with xpt_alloc_ccb[_nowait]/xpt_free_ccb. Hopefully this would be helpful if someday we move the CCB allocator to use UMA instead of malloc(). Encouraged by: jeffr, rwatson Reviewed by: gibbs, scottl Approved by: re (scottl) Revision Changes Path 1.60 +6 -3 src/sys/cam/cam_periph.c 1.9 +18 -13 src/sys/cam/cam_queue.c 1.9 +6 -3 src/sys/cam/cam_sim.c 1.155 +30 -18 src/sys/cam/cam_xpt.c 1.5 +1 -0 src/sys/cam/cam_xpt_periph.h 1.24 +10 -7 src/sys/cam/scsi/scsi_low.c 1.105 +3 -2 src/sys/cam/scsi/scsi_sa.c 1.32 +7 -5 src/sys/cam/scsi/scsi_ses.c 1.22 +17 -15 src/sys/cam/scsi/scsi_targ_bh.c