/[base]
ViewVC logotype

Revision 286859


Jump to revision: Previous Next
Author: loos
Date: Mon Aug 17 19:06:14 2015 UTC (8 years, 10 months ago)
Changed paths: 2
Log Message:
MFC r286260:
  Remove the mtx_sleep() from the kqueue f_event filter.

  The filter is called from the network hot path and must not sleep.

  The filter runs with the descriptor lock held and does not manipulate the
  buffers, so it is not necessary sleep when the hold buffer is in use.

  Just ignore the hold buffer contents when it is being copied to user space
  (when hold buffer in use is set).

  This fix the "Sleeping thread owns a non-sleepable lock" panic when the
  userland thread is too busy reading the packets from bpf(4).

  PR:           200323
  Sponsored by: Rubicon Communications (Netgate)


Changed paths

Path Details
Directorystable/10/ modified , props changed
Directorystable/10/sys/net/bpf.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27