lkml.org 
[lkml]   [2020]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.10 471/717] NFS/pNFS: Fix a typo in ff_layout_resend_pnfs_read()
    Date
    From: Trond Myklebust <trond.myklebust@hammerspace.com>

    [ Upstream commit 52104f274e2d7f134d34bab11cada8913d4544e2 ]

    Don't bump the index twice.

    Fixes: 563c53e73b8b ("NFS: Fix flexfiles read failover")
    Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    fs/nfs/flexfilelayout/flexfilelayout.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c
    index 24bf5797f88ae..fd0eda328943b 100644
    --- a/fs/nfs/flexfilelayout/flexfilelayout.c
    +++ b/fs/nfs/flexfilelayout/flexfilelayout.c
    @@ -1056,7 +1056,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);
    --
    2.27.0


    \
     
     \ /
      Last update: 2020-12-28 15:51    [W:3.299 / U:0.780 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site