On Wed, Mar 23, 2016 at 06:16:53PM -0700, Dan Williams wrote:
Consider the following scenario:
<install a new nvdimm-bus provider>
...the second ndctl_bus_foreach() will not see any new buses because the
bus results are cached. When the holder of the context knows that it
has invalidated the bus list it needs to call ndctl_invalidate() so that
subsequent ndctl_bus_foreach() scans are guaranteed to see new buses.
Signed-off-by: Dan Williams <dan.j.williams(a)intel.com>
lib/libndctl.c | 22 ++++++++++++++++++----
lib/libndctl.sym | 1 +
lib/ndctl/libndctl.h.in | 1 +
I can't get this patch to apply because I don't have lib/ndctl/libndctl.h.in
in my source tree.
I'm using your upstream repo:
and AFAICT this file doesn't exist in any upstream branches.