From owner-p4-projects@FreeBSD.ORG Tue Nov 3 21:41:30 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9605A1065670; Tue, 3 Nov 2009 21:41:30 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AC08106566B for ; Tue, 3 Nov 2009 21:41:30 +0000 (UTC) (envelope-from mav@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 489488FC1F for ; Tue, 3 Nov 2009 21:41:30 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nA3LfUnJ007034 for ; Tue, 3 Nov 2009 21:41:30 GMT (envelope-from mav@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nA3LfUVU007032 for perforce@freebsd.org; Tue, 3 Nov 2009 21:41:30 GMT (envelope-from mav@freebsd.org) Date: Tue, 3 Nov 2009 21:41:30 GMT Message-Id: <200911032141.nA3LfUVU007032@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to mav@freebsd.org using -f From: Alexander Motin To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 170134 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Nov 2009 21:41:30 -0000 http://p4web.freebsd.org/chv.cgi?CH=170134 Change 170134 by mav@mav_mavtest on 2009/11/03 21:41:08 Remove some deprecated things. Affected files ... .. //depot/projects/scottl-camlock/src/sys/cam/ata/ata_da.c#38 edit Differences ... ==== //depot/projects/scottl-camlock/src/sys/cam/ata/ata_da.c#38 (text+ko) ==== @@ -103,8 +103,6 @@ struct ada_softc { struct bio_queue_head bio_queue; - SLIST_ENTRY(ada_softc) links; - LIST_HEAD(, ccb_hdr) pending_ccbs; ada_state state; ada_flags flags; ada_quirks quirks; @@ -611,7 +609,6 @@ return(CAM_REQ_CMP_ERR); } - LIST_INIT(&softc->pending_ccbs); bioq_init(&softc->bio_queue); if (cgd->ident_data.capabilities1 & ATA_SUPPORT_DMA) @@ -850,19 +847,10 @@ break; } start_ccb->ccb_h.ccb_state = ADA_CCB_BUFFER_IO; - - /* - * Block out any asyncronous callbacks - * while we touch the pending ccb list. - */ - LIST_INSERT_HEAD(&softc->pending_ccbs, - &start_ccb->ccb_h, periph_links.le); + start_ccb->ccb_h.ccb_bp = bp; softc->outstanding_cmds++; - - start_ccb->ccb_h.ccb_bp = bp; + xpt_action(start_ccb); bp = bioq_first(&softc->bio_queue); - - xpt_action(start_ccb); } if (bp != NULL) { @@ -939,12 +927,6 @@ if (ataio->resid > 0) bp->bio_flags |= BIO_ERROR; } - - /* - * Block out any asyncronous callbacks - * while we touch the pending ccb list. - */ - LIST_REMOVE(&done_ccb->ccb_h, periph_links.le); softc->outstanding_cmds--; if (softc->outstanding_cmds == 0) softc->flags |= ADA_FLAG_WENT_IDLE;