Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153086214
D2262.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
536 B
Referenced Files
None
Subscribers
None
D2262.id.diff
View Options
Index: head/sys/kern/kern_poll.c
===================================================================
--- head/sys/kern/kern_poll.c
+++ head/sys/kern/kern_poll.c
@@ -367,6 +367,9 @@
struct timeval t;
int kern_load;
+ if (poll_handlers == 0)
+ return;
+
mtx_lock(&poll_mtx);
if (!netisr_pollmore_scheduled) {
mtx_unlock(&poll_mtx);
@@ -424,6 +427,9 @@
int i, cycles;
enum poll_cmd arg = POLL_ONLY;
+ if (poll_handlers == 0)
+ return;
+
mtx_lock(&poll_mtx);
if (!netisr_poll_scheduled) {
mtx_unlock(&poll_mtx);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 1:21 AM (20 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31813663
Default Alt Text
D2262.id.diff (536 B)
Attached To
Mode
D2262: When a kernel has DEVICE_POLLING turned on but no drivers have the capability do not try to take the mutex at all. Replaces misbegotten attempt from reverted commit 281276 Pointed out by: glebius Sponsored by: Rubicon Communications (Netgate)
Attached
Detach File
Event Timeline
Log In to Comment