From owner-cvs-all@FreeBSD.ORG Wed May 16 16:54:24 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5656B16A481; Wed, 16 May 2007 16:54:24 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 46AB613C448; Wed, 16 May 2007 16:54:24 +0000 (UTC) (envelope-from scottl@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l4GGsOux005528; Wed, 16 May 2007 16:54:24 GMT (envelope-from scottl@repoman.freebsd.org) Received: (from scottl@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l4GGsOcO005524; Wed, 16 May 2007 16:54:24 GMT (envelope-from scottl) Message-Id: <200705161654.l4GGsOcO005524@repoman.freebsd.org> From: Scott Long Date: Wed, 16 May 2007 16:54:24 +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_xpt.c cam_xpt.h src/sys/cam/scsi scsi_cd.c scsi_ch.c scsi_da.c scsi_pass.c scsi_pt.c scsi_sa.c scsi_ses.c scsi_sg.c scsi_targ_bh.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: Wed, 16 May 2007 16:54:24 -0000 scottl 2007-05-16 16:54:24 UTC FreeBSD src repository Modified files: sys/cam cam_xpt.c cam_xpt.h sys/cam/scsi scsi_cd.c scsi_ch.c scsi_da.c scsi_pass.c scsi_pt.c scsi_sa.c scsi_ses.c scsi_sg.c scsi_targ_bh.c Log: Add a helper function for registering async callbacks. Besides eliminating a lot of duplicated code, this also fixes a locking edge case. Revision Changes Path 1.185 +33 -0 src/sys/cam/cam_xpt.c 1.9 +2 -0 src/sys/cam/cam_xpt.h 1.101 +4 -32 src/sys/cam/scsi/scsi_cd.c 1.46 +4 -32 src/sys/cam/scsi/scsi_ch.c 1.210 +5 -32 src/sys/cam/scsi/scsi_da.c 1.48 +4 -32 src/sys/cam/scsi/scsi_pass.c 1.47 +5 -32 src/sys/cam/scsi/scsi_pt.c 1.111 +4 -35 src/sys/cam/scsi/scsi_sa.c 1.35 +3 -30 src/sys/cam/scsi/scsi_ses.c 1.9 +4 -31 src/sys/cam/scsi/scsi_sg.c 1.25 +2 -16 src/sys/cam/scsi/scsi_targ_bh.c