On Thu, Mar 24, 2016 at 9:04 AM, Ross Zwisler
<ross.zwisler(a)linux.intel.com> wrote:
On Wed, Mar 23, 2016 at 06:16:53PM -0700, Dan Williams wrote:
> Consider the following scenario:
>
> ndctl_new()
> ndctl_bus_foreach()
> <install a new nvdimm-bus provider>
> ndctl_bus_foreach()
>
> ...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:
https://github.com/pmem/ndctl.git
and AFAICT this file doesn't exist in any upstream branches.
https://patchwork.kernel.org/patch/8584381/
I'll push this out to the -pending branch.