diff options
author | 2021-09-06 11:59:24 +1000 | |
---|---|---|
committer | 2021-10-03 23:00:50 -0400 | |
commit | a2915fa06227b056a8f9b0d79b61dca08ad5cfc6 (patch) | |
tree | 5fae6438dabc0e85a70006449f3bcbc311fc8e37 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | NFS: Remove unnecessary page cache invalidations (diff) | |
download | linux-dev-a2915fa06227b056a8f9b0d79b61dca08ad5cfc6.tar.xz linux-dev-a2915fa06227b056a8f9b0d79b61dca08ad5cfc6.zip |
pnfs/flexfiles: Fix misplaced barrier in nfs4_ff_layout_prepare_ds
_nfs4_pnfs_v3/v4_ds_connect do
some work
smp_wmb
ds->ds_clp = clp;
And nfs4_ff_layout_prepare_ds currently does
smp_rmb
if(ds->ds_clp)
...
This patch places the smp_rmb after the if. This ensures that following
reads only happen once nfs4_ff_layout_prepare_ds has checked that data
has been properly initialized.
Fixes: d67ae825a59d6 ("pnfs/flexfiles: Add the FlexFile Layout Driver")
Signed-off-by: Baptiste Lepers <baptiste.lepers@gmail.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions