Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp890552imu; Fri, 11 Jan 2019 10:53:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN5O/NBOjuYJvoq0gcXRhYPWJVQIhms4OHzYvbpZkClFs1T0o7WN9k8W3njIQ7vIE0wToXUP X-Received: by 2002:a62:6408:: with SMTP id y8mr15538799pfb.202.1547232785689; Fri, 11 Jan 2019 10:53:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547232785; cv=none; d=google.com; s=arc-20160816; b=SA12vfMBwNBTqsj1Fo3ScftmAaMle6If+TvQTccOyyJHl2Bgy0wlcTtZ8D3QHu4STO W/ZoUP9bLSzyTY5gX3hBX9GAj+5F9jBACc+7NOasR3wSpHBV8sNOiADQeS7/LHJskRfb ZvOYWsdLKPvMWQfDzd/HJRdOBzaR4HzK4WHmozDi+Y7xYCmz6OUuId9RJe1PcTVuKTqB 4LyGGb0yDrzNd7sFWA+ChLcGjGNBGjAXFE9pppy0ZY3dbCRsTPdZ+YR2iYSmR2jnx8Ks +5Nl6RYQZ7p5C8AXRAnQ4nKV3J5Ki0lgawW5MlCd8SwDDPVgXtma5UdKeoCO2RvNrMsW pJiw== 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=KALKW0a5UcTuYr9fxnQ8foyxLFYuYy2c065Q3JLZxIc=; b=BvSAHarV2SAfdtEPmNCcVdQtX2xwKmQItnntgXLWcsIV7sDglkhCe7ogmv/Nh3QeRs dsrr/GBUumItk2kBfVEmDvh17BoQUtp+LXL5Q7a+UR+3S8hf8K70t8joYt8o/GQ+HcIc TGO/seaKFt2s0E/ZYJCSWYXdAQxoGE0+MCAKLVBs2eo8NH4pnekfkTwYhtVcGEDADiLF Fd3Le/aYL/RbJgMDx4+8rZwnR12w/SOD6kuTrP3sf924soXc8LqsMYuc8XdvfS53uSss Vu2F6fH9//f9J25L8nzoux1Jv58FtxEaT0KajzD+6Qc8rBxLPzTf7CXsy1WIllYrSsQO +G2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ZKgNcWKb; 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 bc3si9428932plb.130.2019.01.11.10.52.49; Fri, 11 Jan 2019 10:53:05 -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=ZKgNcWKb; 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 S2388091AbfAKOUT (ORCPT + 99 others); Fri, 11 Jan 2019 09:20:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:37906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731443AbfAKOUP (ORCPT ); Fri, 11 Jan 2019 09:20:15 -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 F16972184A; Fri, 11 Jan 2019 14:20:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547216415; bh=Sqy42z9xIHQHfoDgApDEgNJrdrJQKchgtw4WdgNSZZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZKgNcWKbBgNzRv+2aV1eL3hi+UcejBg07m/YX6x6iCMkEJ0f2C0xawh/pPdiBBW+a vCRHf5DwbaxgEjdkgYLVcstajenvQCJ/fhFrDTXY32pyi5d2VNDml/n0y1ZkXOwE6P de1iIWmI4fmu0ljGh3e9XYDkhDWEOq6CI1A9Tme0= 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.4 84/88] ceph: dont update importing caps mseq when handing cap export Date: Fri, 11 Jan 2019 15:08:53 +0100 Message-Id: <20190111131059.677677167@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131045.137499039@linuxfoundation.org> References: <20190111131045.137499039@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.4-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 @@ -3243,7 +3243,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)