forked from luck/tmp_suning_uos_patched
e94c59b64e
[ Upstream commit a2915fa06227b056a8f9b0d79b61dca08ad5cfc6 ]
_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:
|
||
---|---|---|
.. | ||
flexfilelayout.c | ||
flexfilelayout.h | ||
flexfilelayoutdev.c | ||
Makefile |