summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2010-08-20 17:20:05 +0000
committermjacob <mjacob@FreeBSD.org>2010-08-20 17:20:05 +0000
commit6f82627f9663e08b48251bc8ca8201c2356ea3cd (patch)
tree30331a9a20c9187df26c30e1cf65c5fb96ea13e2 /sys/cam
parent9d41da2950a1e2f3c88f98ee33d3fdbfba676385 (diff)
downloadFreeBSD-src-6f82627f9663e08b48251bc8ca8201c2356ea3cd.zip
FreeBSD-src-6f82627f9663e08b48251bc8ca8201c2356ea3cd.tar.gz
Revert r211434. Offline discussions have convinced me that this should
be left alone for now.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_da.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index 0bf175a..8f64361 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -958,8 +958,6 @@ dainit(void)
static void
daoninvalidate(struct cam_periph *periph)
{
- struct ccb_abort cab;
- struct ccb_hdr *ccb_h, *ccb_h_t;
struct da_softc *softc;
softc = (struct da_softc *)periph->softc;
@@ -969,29 +967,15 @@ daoninvalidate(struct cam_periph *periph)
*/
xpt_register_async(0, daasync, periph, periph->path);
- /*
- * Invalidate the pack label
- */
softc->flags |= DA_FLAG_PACK_INVALID;
/*
* Return all queued I/O with ENXIO.
+ * XXX Handle any transactions queued to the card
+ * with XPT_ABORT_CCB.
*/
bioq_flush(&softc->bio_queue, NULL, ENXIO);
- /*
- * Issue aborts for any pending commands.
- */
- xpt_setup_ccb(&cab.ccb_h, periph->path, CAM_PRIORITY_NORMAL+1);
- cab.ccb_h.func_code = XPT_ABORT;
- LIST_FOREACH_SAFE(ccb_h, &softc->pending_ccbs, periph_links.le, ccb_h_t) {
- cab.abort_ccb = (union ccb *)ccb_h;
- xpt_action((union ccb *)&cab);
- }
-
- /*
- * This disk is *history*....
- */
disk_gone(softc->disk);
xpt_print(periph->path, "lost device\n");
}
OpenPOWER on IntegriCloud