]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When doing a dump, the scheduler is normally not running, so this
authorWarner Losh <imp@FreeBSD.org>
Tue, 19 Dec 2017 04:13:22 +0000 (04:13 +0000)
committerWarner Losh <imp@FreeBSD.org>
Tue, 19 Dec 2017 04:13:22 +0000 (04:13 +0000)
commit5cf3cd108f77fec0c2505b00fb58efae71c4fc42
tree1275015d55624c08dedb9183924b9ff013694713
parentfc1340fb40b0866d2f04ce08f8c600877a973f41
When doing a dump, the scheduler is normally not running, so this
changed worked to capture dumps for me. However, the test for
SCHEDULER_STOPPED() isn't right. We can also call the dump routine
from ddb, in which case the scheduler is still running. This leads to
an assertion panic that we're sleeping when we shouldn't. Instead, use
the proper test for dumping or not. This brings us in line with other
places that do special things while we're doing polled I/O like this.

Noticed by: pho@
Differential Revision: https://reviews.freebsd.org/D13531
sys/cam/cam_periph.c