summaryrefslogtreecommitdiffstats
path: root/meta-yocto-bsp/lib
diff options
context:
space:
mode:
authorRichard Tollerton <rich.tollerton@ni.com>2014-12-08 16:44:33 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-19 18:08:01 +0000
commit24a159e16962477b105eeb144515fd16ddb3cdd0 (patch)
tree7ead5b24add9958d3da14df4927b33e230ff575c /meta-yocto-bsp/lib
parenta957ff1dc4d084f4b7868359a508241f4af480f4 (diff)
downloadpoky-24a159e16962477b105eeb144515fd16ddb3cdd0.tar.gz
udev-cache: stop race between sysconf and cache generation
The validity of the udev cache is determined by the sysconf file (/etc/udev/cache.data). Currently, there is a substantial delay between sysconf generation in /etc/init.d/udev and cache generation in /etc/init.d/udev-cache. If a hotplug event arrives in the middle of this, then the sysconf will be out of date with respect to the cache. The solution is two-pronged. First, we minimize the race window by regenerating the sysconf immediately before the cache, in /etc/init.d/udev-cache. This allows us to kill the race entirely by stopping the udev event queue while the sysconf and cache are being generated. (From OE-Core rev: 107e7fa2b2cc2e06addb83518c03b3ab769fed6f) Signed-off-by: Richard Tollerton <rich.tollerton@ni.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-yocto-bsp/lib')
0 files changed, 0 insertions, 0 deletions