diff options
author | attilio <attilio@FreeBSD.org> | 2011-08-21 10:52:50 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2011-08-21 10:52:50 +0000 |
commit | a5ccee99f762eeb025ed186ef72c8cf32515896c (patch) | |
tree | e75230ec49c93d136417ab1e1dcb7cffed2bcc8a /usr.sbin | |
parent | 7b624f0be1a93c6b631464d3f96c4277a78781af (diff) | |
download | FreeBSD-src-a5ccee99f762eeb025ed186ef72c8cf32515896c.zip FreeBSD-src-a5ccee99f762eeb025ed186ef72c8cf32515896c.tar.gz |
callout_cpu_switch() allows preemption when dropping the outcoming
callout cpu lock (and after having dropped it).
If the newly scheduled thread wants to acquire the old queue it will
just spin forever.
Fix this by disabling preemption and interrupts entirely (because fast
interrupt handlers may incur in the same problem too) while switching
locks.
Reported by: hrs, Mike Tancsa <mike AT sentex DOT net>,
Chip Camden <sterling AT camdensoftware DOT com>
Tested by: hrs, Mike Tancsa <mike AT sentex DOT net>,
Chip Camden <sterling AT camdensoftware DOT com>,
Nicholas Esborn <nick AT desert DOT net>
Approved by: re (kib)
MFC after: 10 days
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions