svn commit: r217188 - projects/graid/head/sys/cam/ata
Alexander Motin
mav at FreeBSD.org
Sun Jan 9 09:56:43 UTC 2011
Author: mav
Date: Sun Jan 9 09:56:43 2011
New Revision: 217188
URL: http://svn.freebsd.org/changeset/base/217188
Log:
Fix panic when built without ADA_TEST_FAILURE.
Modified:
projects/graid/head/sys/cam/ata/ata_da.c
Modified: projects/graid/head/sys/cam/ata/ata_da.c
==============================================================================
--- projects/graid/head/sys/cam/ata/ata_da.c Sun Jan 9 09:21:11 2011 (r217187)
+++ projects/graid/head/sys/cam/ata/ata_da.c Sun Jan 9 09:56:43 2011 (r217188)
@@ -855,12 +855,14 @@ adaregister(struct cam_periph *periph, v
dp->secsize, dp->heads,
dp->secs_per_track, dp->cylinders);
xpt_announce_periph(periph, announce_buf);
+#ifdef ADA_TEST_FAILURE
/*
* Create our sysctl variables, now that we know
* we have successfully attached.
* XXX: da code does a cam_periph_acquire(periph) here -- why?.
*/
taskqueue_enqueue(taskqueue_thread, &softc->sysctl_task);
+#endif
/*
* Add async callbacks for bus reset and
* bus device reset calls. I don't bother
More information about the svn-src-projects
mailing list