Commit 52104f27 authored by Trond Myklebust's avatar Trond Myklebust

NFS/pNFS: Fix a typo in ff_layout_resend_pnfs_read()

Don't bump the index twice.

Fixes: 563c53e7 ("NFS: Fix flexfiles read failover")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 9bfffea3
......@@ -1052,7 +1052,7 @@ static void ff_layout_resend_pnfs_read(struct nfs_pgio_header *hdr)
u32 idx = hdr->pgio_mirror_idx + 1;
u32 new_idx = 0;
if (ff_layout_choose_any_ds_for_read(hdr->lseg, idx + 1, &new_idx))
if (ff_layout_choose_any_ds_for_read(hdr->lseg, idx, &new_idx))
ff_layout_send_layouterror(hdr->lseg);
else
pnfs_error_mark_layout_for_return(hdr->inode, hdr->lseg);
......
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