PERFORCE change 167673 for review
Alexander Motin
mav at FreeBSD.org
Sun Aug 23 12:43:43 UTC 2009
http://perforce.freebsd.org/chv.cgi?CH=167673
Change 167673 by mav at mav_mavbook on 2009/08/23 12:42:53
Remove RETRY_UA SCSI'sm from ADA driver.
Affected files ...
.. //depot/projects/scottl-camlock/src/sys/cam/ata/ata_da.c#24 edit
Differences ...
==== //depot/projects/scottl-camlock/src/sys/cam/ata/ata_da.c#24 (text+ko) ====
@@ -75,7 +75,6 @@
ADA_FLAG_CAN_DMA = 0x010,
ADA_FLAG_NEED_OTAG = 0x020,
ADA_FLAG_WENT_IDLE = 0x040,
- ADA_FLAG_RETRY_UA = 0x080,
ADA_FLAG_OPEN = 0x100,
ADA_FLAG_SCTX_INIT = 0x200
} ada_flags;
@@ -90,7 +89,6 @@
ADA_CCB_WAITING = 0x04,
ADA_CCB_DUMP = 0x05,
ADA_CCB_TYPE_MASK = 0x0F,
- ADA_CCB_RETRY_UA = 0x10
} ada_ccb_state;
/* Offsets into our private area for storing information */
@@ -287,8 +285,7 @@
else
ata_48bit_cmd(&ccb->ataio, ATA_FLUSHCACHE, 0, 0, 0);
cam_periph_runccb(ccb, /*error_routine*/NULL, /*cam_flags*/0,
- /*sense_flags*/SF_RETRY_UA,
- softc->disk->d_devstat);
+ /*sense_flags*/0, softc->disk->d_devstat);
if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP)
xpt_print(periph->path, "Synchronize cache failed\n");
@@ -562,23 +559,14 @@
case AC_SENT_BDR:
case AC_BUS_RESET:
{
- struct ada_softc *softc;
- struct ccb_hdr *ccbh;
+ struct ada_softc *softc = (struct ada_softc *)periph->softc;
- softc = (struct ada_softc *)periph->softc;
/*
* Restore device configuration.
*/
softc->state = ADA_STATE_SET_MULTI;
(void)cam_periph_hold(periph, PRIBIO);
xpt_schedule(periph, CAM_PRIORITY_DEV);
- /*
- * Don't fail on the expected unit attention
- * that will occur.
- */
- softc->flags |= ADA_FLAG_RETRY_UA;
- LIST_FOREACH(ccbh, &softc->pending_ccbs, periph_links.le)
- ccbh->ccb_state |= ADA_CCB_RETRY_UA;
/* FALLTHROUGH*/
}
default:
@@ -902,12 +890,6 @@
&start_ccb->ccb_h, periph_links.le);
softc->outstanding_cmds++;
- /* We expect a unit attention from this device */
- if ((softc->flags & ADA_FLAG_RETRY_UA) != 0) {
- start_ccb->ccb_h.ccb_state |= ADA_CCB_RETRY_UA;
- softc->flags &= ~ADA_FLAG_RETRY_UA;
- }
-
start_ccb->ccb_h.ccb_bp = bp;
bp = bioq_first(&softc->bio_queue);
More information about the p4-projects
mailing list