napi: SCHED flag set/clear

From: Krishna Chaitanya <hidden>
Date: 2018-06-22 22:23:08

Hi,

While debugging a NAPI related issue (calling napi_disable() twice
leading to deadlock),
I have come across below query. The issue is not documented anywhere
(except for Ben grear's  ath10k patch)

Below are my expectations:

napi_disable(): waits for SCHED (ignoring other flags)
napi_enable(): set SCHED flag

but in reality,

napi_disable: test and set SCHED flag in a while() loop?
napi_enable: clear SCHED flag

This is a bit counter-intuitive, SCHED generally means pollable (enabled).

Am i missing something?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help