1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-22 15:47:37 +00:00

I was getting panics in sleepq_add for the second sleep in isp_kthread.

I don't know why- but it occurred to me in looking at the second sleep
is that all I want is a pause- not an actual sleep. So do that instead.

MFC after:	2 weeks
This commit is contained in:
Matt Jacob 2010-06-05 00:55:21 +00:00
parent 5e25430c4e
commit 4962e51b0c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=208808

View File

@ -4139,7 +4139,9 @@ isp_kthread(void *arg)
*/
if (slp == 0 && fc->hysteresis) {
isp_prt(isp, ISP_LOGSANCFG|ISP_LOGDEBUG0, "%s: Chan %d sleep hysteresis ticks %d", __func__, chan, fc->hysteresis * hz);
(void) msleep(&isp_fabric_hysteresis, &isp->isp_osinfo.lock, PRIBIO, "ispT", (fc->hysteresis * hz));
mtx_unlock(&isp->isp_osinfo.lock);
pause("ispt", fc->hysteresis * hz);
mtx_lock(&isp->isp_osinfo.lock);
}
}
mtx_unlock(&isp->isp_osinfo.lock);