HomeFreeBSD

MFC r343344

Description

MFC r343344

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
Differential Revision: https://reviews.freebsd.org/D18876

Details

Committed
vmaffioneFeb 6 2019, 9:38 AM
Reviewer
markj
Differential Revision
D18876: netmap: fix knote() argument to match the mutex state
Parents
rS343830: MFC r343346
Branches
Unknown
Tags
Unknown

Event Timeline