From 0d965629892e2d046c35fb9e73f23cbc4584323f Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sun, 19 Feb 2017 05:29:06 +0000 Subject: [PATCH] Missed addition to r313936. CTIO waitq present only in ISP_TARGET_MODE. MFC after: 2 weeks --- sys/dev/isp/isp_freebsd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c index 2bb827720e63..37ea7dd3198d 100644 --- a/sys/dev/isp/isp_freebsd.c +++ b/sys/dev/isp/isp_freebsd.c @@ -153,7 +153,9 @@ isp_attach_chan(ispsoftc_t *isp, struct cam_devq *devq, int chan) 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 cam_devq *devq, int chan) 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)) {