Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177368722
D2262.1794214600.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
536 B
Referenced Files
None
Subscribers
None
D2262.1794214600.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, Nov 9, 8:56 AM (2 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41610441
Default Alt Text
D2262.1794214600.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