From ee76282ef5407cc397c2f8f4ff2a74cd8c2978b4 Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Fri, 6 Sep 2002 18:20:59 +0000 Subject: Tsk. Now that we're not using our own locks, we have to remember to grab Giant in isp_kthread so that msleep is *happy* that there's no lock being passed to it (as tsleep turns out to be...) --- sys/dev/isp/isp_freebsd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/isp') diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c index fc64147a31fb..af93d2062e1b 100644 --- a/sys/dev/isp/isp_freebsd.c +++ b/sys/dev/isp/isp_freebsd.c @@ -1963,6 +1963,8 @@ isp_kthread(void *arg) #ifdef ISP_SMPLOCK mtx_lock(&isp->isp_lock); +#else + mtx_lock(&Giant); #endif /* * The first loop is for our usage where we have yet to have -- cgit v1.3