Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9092107pxu; Mon, 28 Dec 2020 06:26:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhIveo5QFZyBxB6hX882/goM2uJy8BpDaRm9lOwBqHL8LJGTBO6DY9QHCRQCwzmRK0VL4r X-Received: by 2002:aa7:d297:: with SMTP id w23mr42545522edq.374.1609165609409; Mon, 28 Dec 2020 06:26:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165609; cv=none; d=google.com; s=arc-20160816; b=tSuPmMY1/hmOeir1stv3m2+4IoEb3dqX7tTCNEJucmT3Jz8fHPJbxem6eaEVHBxV2P LeL8vtUykGG8bh9LSRSO6ziAwq41k/YrYe5YzaeXz7pfmh4m0wxCEgXMULMK6Gv/G21C zt0EASFjE4EkAkW9zhZL3COmDMXl4gsTfJ/CMRKaNbOPlgPEhncG6B2C5K9eKpE1Apx9 yJkcZHw3Q717+KBtl+J2DzL/3dhXp7UeTzpqIbd3RFMZbSVF/pLMYjjU++bFCuw7h7fM XcYoekLb/O2MMlmPZe9tmH1Z493sDCv9xgP0aFCBpSG1XmDrrG4U8rqZxxYbjLSuPK6r Dk0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0X8Dyfa2foapqZaZcf2BrXLHgj1ww3nAQi6BjbwfUao=; b=Tuu1NYGF3ZYuHYBTGtwqiTb8LOfFz0uxz5P0+LJrQzEbixc8FBceXO1huyZ+xylwBR d2o1v3JbzvdB7d5Q6j8VsOwZ5N7S2lJCx9lEBpXBJt85+YZCEY5UfqSRmSpchIKsucGX slqI3fIXtR2VgMm3JKpew3kGrUU5WVQSVuytXPAG+841j/ixIh2W/M3PI+CQwQAVW15+ IAhzsrilNwkvBonCk1gsjWL92sJ8dkGgwLGx69c0VS2jS8ACVUT633DOU1N+MXdgU643 0MzKne2QWvTT6GKBy5hsS94OjZl1i2VD1LgaMmrC01a9tJ1mswzoeghjog0yhcNTi60D 90ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g4Jqt2fu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr1si18892733ejc.474.2020.12.28.06.26.27; Mon, 28 Dec 2020 06:26:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=g4Jqt2fu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440684AbgL1OVz (ORCPT + 99 others); Mon, 28 Dec 2020 09:21:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:56246 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437902AbgL1OVY (ORCPT ); Mon, 28 Dec 2020 09:21:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 899AA2063A; Mon, 28 Dec 2020 14:21:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165269; bh=O/P785hr0xbbym5kCpKjzJy8UPJQsYyr69+MfA5v6b4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g4Jqt2fui5ov8PNoIsLfZElKXIUM2sSPeDA+jREqZsd2NNoidrD2HTGjOk+9zqSYR Dlj+Htza+7/Qf/QHuLMvitCzJwM0Xkb7WK3bBKXPlnxewFNO9grgFIEffvYtU+KRor 2pv74URGn5qpBj0F0iDF/C0Y0ZqpMjbg0Gys51Ec= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Trond Myklebust , Sasha Levin Subject: [PATCH 5.10 471/717] NFS/pNFS: Fix a typo in ff_layout_resend_pnfs_read() Date: Mon, 28 Dec 2020 13:47:49 +0100 Message-Id: <20201228125043.538601752@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Trond Myklebust [ Upstream commit 52104f274e2d7f134d34bab11cada8913d4544e2 ] Don't bump the index twice. Fixes: 563c53e73b8b ("NFS: Fix flexfiles read failover") Signed-off-by: Trond Myklebust Signed-off-by: Sasha Levin --- 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