From owner-p4-projects@FreeBSD.ORG Thu Mar 29 04:56:19 2007 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 5126B16A402; Thu, 29 Mar 2007 04:56:19 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA49816A400 for ; Thu, 29 Mar 2007 04:56:18 +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 C397F13C457 for ; Thu, 29 Mar 2007 04:56:18 +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 l2T4uInv051565 for ; Thu, 29 Mar 2007 04:56:18 GMT (envelope-from scottl@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l2T4uIlE051505 for perforce@freebsd.org; Thu, 29 Mar 2007 04:56:18 GMT (envelope-from scottl@freebsd.org) Date: Thu, 29 Mar 2007 04:56:18 GMT Message-Id: <200703290456.l2T4uIlE051505@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 116813 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: Thu, 29 Mar 2007 04:56:19 -0000 http://perforce.freebsd.org/chv.cgi?CH=116813 Change 116813 by scottl@scottl-x64 on 2007/03/29 04:55:27 Use xpt_alloc_ccb_nowait() to avoid malloc problems. Affected files ... .. //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_pass.c#21 edit Differences ... ==== //depot/projects/scottl-camlock/src/sys/cam/scsi/scsi_pass.c#21 (text+ko) ==== @@ -490,7 +490,7 @@ inccb->ccb_h.pinfo.priority); ccb_malloced = 0; } else { - ccb = xpt_alloc_ccb(periph->sim); + ccb = xpt_alloc_ccb_nowait(periph->sim); if (ccb != NULL) xpt_setup_ccb(&ccb->ccb_h, periph->path,