diff options
author | mjacob <mjacob@FreeBSD.org> | 2002-09-06 18:20:59 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2002-09-06 18:20:59 +0000 |
commit | 6ee39adbaac7b1f73dbe6027026f03c2cc8861fb (patch) | |
tree | 1ea635517711da303ca585529451f3ee0c7f3c60 /sys/dev/isp | |
parent | 69903403e9731bd3d06399f0c89e5bfbcf6ab3c3 (diff) | |
download | FreeBSD-src-6ee39adbaac7b1f73dbe6027026f03c2cc8861fb.zip FreeBSD-src-6ee39adbaac7b1f73dbe6027026f03c2cc8861fb.tar.gz |
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...)
Diffstat (limited to 'sys/dev/isp')
-rw-r--r-- | sys/dev/isp/isp_freebsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c index fc64147..af93d20 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 |