scsi_pt.c (60938) | scsi_pt.c (71999) |
---|---|
1/* 2 * Implementation of SCSI Processor Target Peripheral driver for CAM. 3 * 4 * Copyright (c) 1998 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/* 2 * Implementation of SCSI Processor Target Peripheral driver for CAM. 3 * 4 * Copyright (c) 1998 Justin T. Gibbs. 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/cam/scsi/scsi_pt.c 60938 2000-05-26 02:09:24Z jake $ | 28 * $FreeBSD: head/sys/cam/scsi/scsi_pt.c 71999 2001-02-04 13:13:25Z phk $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/queue.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/types.h> 36#include <sys/bio.h> --- 448 unchanged lines hidden (view full) --- 485 486 softc = (struct pt_softc *)periph->softc; 487 s = splsoftcam(); 488 /* 489 * Don't fail on the expected unit attention 490 * that will occur. 491 */ 492 softc->flags |= PT_FLAG_RETRY_UA; | 29 */ 30 31#include <sys/param.h> 32#include <sys/queue.h> 33#include <sys/systm.h> 34#include <sys/kernel.h> 35#include <sys/types.h> 36#include <sys/bio.h> --- 448 unchanged lines hidden (view full) --- 485 486 softc = (struct pt_softc *)periph->softc; 487 s = splsoftcam(); 488 /* 489 * Don't fail on the expected unit attention 490 * that will occur. 491 */ 492 softc->flags |= PT_FLAG_RETRY_UA; |
493 for (ccbh = LIST_FIRST(&softc->pending_ccbs); 494 ccbh != NULL; ccbh = LIST_NEXT(ccbh, periph_links.le)) | 493 LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le) |
495 ccbh->ccb_state |= PT_CCB_RETRY_UA; 496 splx(s); 497 /* FALLTHROUGH */ 498 } 499 default: 500 cam_periph_async(periph, code, path, arg); 501 break; 502 } --- 268 unchanged lines hidden --- | 494 ccbh->ccb_state |= PT_CCB_RETRY_UA; 495 splx(s); 496 /* FALLTHROUGH */ 497 } 498 default: 499 cam_periph_async(periph, code, path, arg); 500 break; 501 } --- 268 unchanged lines hidden --- |