]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
FPU init: Do potentially blocking operations before disabling interrupts
authorvangyzen <vangyzen@FreeBSD.org>
Fri, 12 Jun 2020 21:10:45 +0000 (21:10 +0000)
committervangyzen <vangyzen@FreeBSD.org>
Fri, 12 Jun 2020 21:10:45 +0000 (21:10 +0000)
commit92b04896cbf36bdf4f909c453c12236051cf0d6a
tree0d30d49eb2c739b82399974bd0cee6928f22a3de
parent255d51414d0c1f7457f099123d46f598ea9d32ed
FPU init: Do potentially blocking operations before disabling interrupts

In particular, uma_zcreate creates sysctl oids, which locks an sx lock,
which uses IPIs under contention.  IPIs tend not to work very well
when interrupts are disabled.  Who knew, right?

Reviewed by: cem kib
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D25098
sys/amd64/amd64/fpu.c
sys/i386/i386/npx.c