Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp650393imu; Fri, 11 Jan 2019 06:49:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN6BqTf1U37AA20rLtFCv0IS/T7RfHQxlA5e5si9QROUl49t99HN8FhDOqyl9Bt1lKWcbl6P X-Received: by 2002:a63:bc02:: with SMTP id q2mr13720121pge.116.1547218146844; Fri, 11 Jan 2019 06:49:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547218146; cv=none; d=google.com; s=arc-20160816; b=mCKa5TEG1gVrqkxDAzHP+ouLq7rHu+sxQwZamfYog8HmE7wUk2U//Pe6jeUURR7bp0 KM7kazXqcCtW1dt3QjijOWs5/E3Z6u4zLfUU6fiaiX+hP6ADNBVgKjjUhfi3UVOvdGXm rPeeoX/lMm/u4k2faMpV9FIlBjHBhxEqXhLeR5R+2kl4R1FPwuacYLJWPQOvUHJP5efb NGzQ43/2yTa1PRjWCbOVIiw4R3cgzG2MSbmMCnbD/AH1BylfimDL5alwAXlrgIznXbT4 CZUd8b+Rf8YkRaXq7yzc/+RBfd0mwjZMfEYY7UUEc3qGFqC+J2ocLtR+4pTRinzGczUf xIZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Yu7OBei048FI9qOEW2gFh7Ef31CRN+YqB8JDGihSRvk=; b=pssEyMxkhq5l+hghx3ghJIXgt0gnFTeGGHT6CzcqHeryKFykkqmUDVS7H44Q/2MXmH Weq0inAAa0SeWrniv24aOanOj7VE0kQOA2uG7IfUCFl47krOvTnnE3xdXcFXtMw0hBZl M+Odp5s0nMEJ5GecJeah/zFN2n6AW/1V3yyiV6uaVWI/zvClHpEVGqmExq1BiGf/c1Wm NECzrxrmGhJQNEGeEDOEEnLJpffyiqx8UXoCOS8WXW2EkQE6dQWoqz4Bb0rUEpygQVks z1yUOsDKmM7T0KTTmfwZG1TCzv/uzuHqeMnAN1SiJRpxAF0SeKHVsIynxVOzOjTWvzC0 vBMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=FjuXQBLu; 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 69si35756320pgc.164.2019.01.11.06.48.51; Fri, 11 Jan 2019 06:49:06 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=FjuXQBLu; 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 S2391434AbfAKOpw (ORCPT + 99 others); Fri, 11 Jan 2019 09:45:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:36550 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404421AbfAKOni (ORCPT ); Fri, 11 Jan 2019 09:43:38 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6072920872; Fri, 11 Jan 2019 14:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547217817; bh=puPGQPLEik0vGkEMzObkoARi8pGHcRNv7h67RElq5XE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FjuXQBLuMWtdvhlTdbOJmLz3UTHT1q1g3fwHN5U/X+uYZ9bKlXKklqEy1b28iw0yy RldhBoo7JCz4vHyD6NGtQ6f4zZA5qxGaVIfra3csZSi6w9xikCToS+VyKavvd6zm11 prXBQvz4hGW2WSkHZ0r7AJfTbMV2F8Tvy/QuWhrg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Yan, Zheng" , Ilya Dryomov Subject: [PATCH 4.20 52/65] ceph: dont update importing caps mseq when handing cap export Date: Fri, 11 Jan 2019 15:15:38 +0100 Message-Id: <20190111131103.289816814@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131055.331350141@linuxfoundation.org> References: <20190111131055.331350141@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yan, Zheng commit 3c1392d4c49962a31874af14ae9ff289cb2b3851 upstream. Updating mseq makes client think importer mds has accepted all prior cap messages and importer mds knows what caps client wants. Actually some cap messages may have been dropped because of mseq mismatch. If mseq is left untouched, importing cap's mds_wanted later will get reset by cap import message. Cc: stable@vger.kernel.org Signed-off-by: "Yan, Zheng" Signed-off-by: Ilya Dryomov Signed-off-by: Greg Kroah-Hartman --- fs/ceph/caps.c | 1 - 1 file changed, 1 deletion(-) --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -3569,7 +3569,6 @@ retry: tcap->cap_id = t_cap_id; tcap->seq = t_seq - 1; tcap->issue_seq = t_seq - 1; - tcap->mseq = t_mseq; tcap->issued |= issued; tcap->implemented |= issued; if (cap == ci->i_auth_cap)