Commit 388ef166 authored by Trond Myklebust's avatar Trond Myklebust

NFSv4.1/flexfiles: Fix incorrect usage of pnfs_generic_mark_devid_invalid()

Unlike the files layout, flexfiles does not test for the NFS_DEVICEID_INVALID
flag. Instead it relies on NFS_DEVICEID_UNAVAILABLE.
Fix is to replace with nfs4_mark_deviceid_unavailable().
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 972398fa
...@@ -344,7 +344,7 @@ nfs4_ff_layout_select_ds_fh(struct pnfs_layout_segment *lseg, u32 mirror_idx) ...@@ -344,7 +344,7 @@ nfs4_ff_layout_select_ds_fh(struct pnfs_layout_segment *lseg, u32 mirror_idx)
__func__, mirror_idx); __func__, mirror_idx);
if (mirror && mirror->mirror_ds) { if (mirror && mirror->mirror_ds) {
devid = &mirror->mirror_ds->id_node; devid = &mirror->mirror_ds->id_node;
pnfs_generic_mark_devid_invalid(devid); nfs4_mark_deviceid_unavailable(devid);
} }
goto out; goto out;
} }
...@@ -374,7 +374,7 @@ nfs4_ff_layout_prepare_ds(struct pnfs_layout_segment *lseg, u32 ds_idx, ...@@ -374,7 +374,7 @@ nfs4_ff_layout_prepare_ds(struct pnfs_layout_segment *lseg, u32 ds_idx,
__func__, ds_idx); __func__, ds_idx);
if (mirror && mirror->mirror_ds) { if (mirror && mirror->mirror_ds) {
devid = &mirror->mirror_ds->id_node; devid = &mirror->mirror_ds->id_node;
pnfs_generic_mark_devid_invalid(devid); nfs4_mark_deviceid_unavailable(devid);
} }
goto out; goto out;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment