]> git.ipfire.org Git - thirdparty/mdadm.git/commit - platform-intel.c
platform-intel - cache 'intel_devices' for a few seconds.
authorNeilBrown <neilb@suse.de>
Sun, 6 Jan 2013 23:34:43 +0000 (10:34 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 6 Jan 2013 23:34:43 +0000 (10:34 +1100)
commit9bc4ae77e40b5af3cd4be3e4d5aff18e6964e8fa
tree7e3deec8cb057c665e1b6ea0b9ce996cb18e8aa3
parent06d2ffc3e266eea0cbd157ccc3e497c7b9f4bdd3
platform-intel - cache 'intel_devices' for a few seconds.

find_intel_devices() has take a little while to run as it scans
some directory tree, and the result isn't likely to change
often.
So cache the value and only discard it after 10 seconds.

Signed-off-by: NeilBrown <neilb@suse.de>
platform-intel.c
platform-intel.h
super-intel.c