From owner-p4-projects@FreeBSD.ORG Sun Mar 5 18:18:36 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 50A5616A43C; Sun, 5 Mar 2006 18:18:35 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1617B16A422 for ; Sun, 5 Mar 2006 18:18:35 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8A5943D55 for ; Sun, 5 Mar 2006 18:18:34 +0000 (GMT) (envelope-from scottl@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 k25IIYfu073920 for ; Sun, 5 Mar 2006 18:18:34 GMT (envelope-from scottl@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k25IIYNp073917 for perforce@freebsd.org; Sun, 5 Mar 2006 18:18:34 GMT (envelope-from scottl@freebsd.org) Date: Sun, 5 Mar 2006 18:18:34 GMT Message-Id: <200603051818.k25IIYNp073917@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to scottl@freebsd.org using -f From: Scott Long To: Perforce Change Reviews Cc: Subject: PERFORCE change 92800 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Mar 2006 18:18:36 -0000 http://perforce.freebsd.org/chv.cgi?CH=92800 Change 92800 by scottl@scottl-x64 on 2006/03/05 18:17:49 Make the topo lock visible to the rest of CAM that needs it. Affected files ... .. //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#19 edit .. //depot/projects/scottl-camlock/src/sys/cam/cam_xpt_periph.h#6 edit Differences ... ==== //depot/projects/scottl-camlock/src/sys/cam/cam_xpt.c#19 (text+ko) ==== @@ -635,7 +635,7 @@ typedef TAILQ_HEAD(cam_isrq, ccb_hdr) cam_isrq_t; static cam_isrq_t cam_bioq; static struct mtx cam_bioq_lock; -static struct mtx cam_topo_lock; +struct mtx cam_topo_lock; /* "Pool" of inactive ccbs managed by xpt_alloc_ccb and xpt_free_ccb */ static SLIST_HEAD(,ccb_hdr) ccb_freeq; ==== //depot/projects/scottl-camlock/src/sys/cam/cam_xpt_periph.h#6 (text+ko) ==== @@ -37,6 +37,9 @@ /* Functions accessed by the peripheral drivers */ #ifdef _KERNEL + +extern struct mtx cam_topo_lock; + void xpt_polled_action(union ccb *ccb); union ccb *xpt_alloc_ccb(void); union ccb *xpt_alloc_ccb_nowait(void);