Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp2995020imm; Sun, 1 Jul 2018 09:57:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpesuQAUTvBWZF3Vg+43fbtX7Sdw/kiA/q1rS60g/ME19wZf4/FuNhB4W/lbln0htEMC9jxY X-Received: by 2002:a63:3509:: with SMTP id c9-v6mr11508262pga.237.1530464235338; Sun, 01 Jul 2018 09:57:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530464235; cv=none; d=google.com; s=arc-20160816; b=fAr/Pv9qDrs1yg8uLlhKPaw6foDm3c40g1/bFHEycQ7UJHMKWyo8Xl5JWl+hwZRSFO H7I5lwXNqW2dTxL8rGROmRC+KWJpXwQRYrGcPHk3OiNpZIX9FO4nfG979Y+s3tE+X8W2 oqMNe0VbgKkQnbIJgGiEerlUKl4VBJGksp9R3nU4dSn4NR1nQ1uQouj9JHzIFzigDuW4 rei8hbM5yQJ86bXt/l44ToZpaDPaN9DQw1afToaEoQAjxIeigWijuDdwMUUqORNBZ5dp TgYEZUcI4UcpZBu4QTVvniheC+YlJYa0S5HAcQVxSSWqGduoXJDeKFOJqFgQ1BwTeanp BBcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=/PJwkXD70S6X2FZJTb+Ogup4nXjPR7Q7ffYuhc3LyhM=; b=IrvQBVLwBF07A2C0+9Pfz+o/ERsa1t2bz84qEqovUr8EZiObD0noJBag1OetHe+sqA //80dsUYGnDWKobHD49tpXR4qB8J6b1B8+JQ8kt7ZDCBPc4cjBg8idKJmjvOgcVO0KhF PipDRIV4VTz71XpdCgJs4epIyyJWnijV1jmGijxahzlLpyT8W4is73JEXlu/SyY/BM3J /ZiZ16aquCvdNDBzGwN8QLYVuEzIHALqplI+dgI7qZfcQAuvQLkApydAl7VLCDZAY8Os vTL6Y0cWeTULQ2k6Qc5YlVj4cT6a+Smicec+Hhs1qdLUJJ9wR9Pk/STaEVyNvlx4wYZf N5vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z18-v6si11661047pfl.209.2018.07.01.09.57.01; Sun, 01 Jul 2018 09:57:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933992AbeGAQpF (ORCPT + 99 others); Sun, 1 Jul 2018 12:45:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38146 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932883AbeGAQpA (ORCPT ); Sun, 1 Jul 2018 12:45:00 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id E639B92B; Sun, 1 Jul 2018 16:44:59 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Trond Myklebust Subject: [PATCH 4.17 183/220] NFSv4: Fix a typo in nfs41_sequence_process Date: Sun, 1 Jul 2018 18:23:27 +0200 Message-Id: <20180701160915.858085985@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Trond Myklebust commit 995891006ccbb73c0c9c3923cf9d25c4d07ec16b upstream. We want to compare the slot_id to the highest slot number advertised by the server. Fixes: 3be0f80b5fe9c ("NFSv4.1: Fix up replays of interrupted requests") Cc: stable@vger.kernel.org # 4.15+ Signed-off-by: Trond Myklebust Signed-off-by: Greg Kroah-Hartman --- fs/nfs/nfs4proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -751,7 +751,7 @@ static int nfs41_sequence_process(struct * The slot id we used was probably retired. Try again * using a different slot id. */ - if (slot->seq_nr < slot->table->target_highest_slotid) + if (slot->slot_nr < slot->table->target_highest_slotid) goto session_recover; goto retry_nowait; case -NFS4ERR_SEQ_MISORDERED: