Skip to content
Commit 2c3dfba4 authored by Johannes Berg's avatar Johannes Berg
Browse files

rfkill: sync before userspace visibility/changes



If userspace quickly opens /dev/rfkill after a new
instance was created, it might see the old state of
the instance from before the sync work runs and may
even _change_ the state, only to have the sync work
change it again.

Fix this by doing the sync inline where needed, not
just for /dev/rfkill but also for sysfs.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 6e48ebff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment