svn commit: r313937 - head/sys/dev/isp
Alexander Motin
mav at FreeBSD.org
Sun Feb 19 05:29:07 UTC 2017
Author: mav
Date: Sun Feb 19 05:29:06 2017
New Revision: 313937
URL: https://svnweb.freebsd.org/changeset/base/313937
Log:
Missed addition to r313936.
CTIO waitq present only in ISP_TARGET_MODE.
MFC after: 2 weeks
Modified:
head/sys/dev/isp/isp_freebsd.c
Modified: head/sys/dev/isp/isp_freebsd.c
==============================================================================
--- head/sys/dev/isp/isp_freebsd.c Sun Feb 19 05:07:02 2017 (r313936)
+++ head/sys/dev/isp/isp_freebsd.c Sun Feb 19 05:29:06 2017 (r313937)
@@ -153,7 +153,9 @@ isp_attach_chan(ispsoftc_t *isp, struct
struct isp_spi *spi = ISP_SPI_PC(isp, chan);
spi->sim = sim;
spi->path = path;
+#ifdef ISP_TARGET_MODE
TAILQ_INIT(&spi->waitq);
+#endif
} else {
fcparam *fcp = FCPARAM(isp, chan);
struct isp_fc *fc = ISP_FC_PC(isp, chan);
@@ -169,7 +171,9 @@ isp_attach_chan(ispsoftc_t *isp, struct
callout_init_mtx(&fc->gdt, &isp->isp_osinfo.lock, 0);
TASK_INIT(&fc->gtask, 1, isp_gdt_task, fc);
+#ifdef ISP_TARGET_MODE
TAILQ_INIT(&fc->waitq);
+#endif
isp_loop_changed(isp, chan);
ISP_UNLOCK(isp);
if (THREAD_CREATE(isp_kthread, fc, &fc->kproc, 0, 0, "%s: fc_thrd%d", device_get_nameunit(isp->isp_osinfo.dev), chan)) {
More information about the svn-src-all
mailing list