Page MenuHomeFreeBSD

D45491.diff
No OneTemporary

D45491.diff

diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c
--- a/sys/kern/kern_intr.c
+++ b/sys/kern/kern_intr.c
@@ -1203,8 +1203,9 @@
* number of back to back interrupts exceeds the storm threshold,
* then enter storming mode.
*/
- if (intr_storm_threshold != 0 && ie->ie_count >= intr_storm_threshold &&
- !(ie->ie_flags & IE_SOFT)) {
+ if (__predict_false(intr_storm_threshold != 0 &&
+ ie->ie_count >= intr_storm_threshold &&
+ (ie->ie_flags & IE_SOFT) == 0)) {
/* Report the message only once every second. */
if (ppsratecheck(&ie->ie_warntm, &ie->ie_warncnt, 1)) {
printf(

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 17, 9:45 AM (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14674259
Default Alt Text
D45491.diff (609 B)

Event Timeline