HomeFreeBSD

netmap: fix knote() argument to match the mutex state

Description

netmap: fix knote() argument to match the mutex state

The nm_os_selwakeup function needs to call knote() to wake up kqueue(9)
users. However, this function can be called from different code paths,
with different lock requirements.
This patch fixes the knote() call argument to match the relavant lock state.
Also, comments have been updated to reflect current code.

PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219846
Reported by: Aleksandr Fedorov <aleksandr.fedorov@itglobal.com>
Reviewed by: markj
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D18876

Details

Committed
vmaffioneJan 23 2019, 2:21 PM
Reviewer
markj
Differential Revision
D18876: netmap: fix knote() argument to match the mutex state
Parents
rS343343: MFC linuxulator stack memory disclosure fixes
Branches
Unknown
Tags
Unknown