Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp871025imu; Fri, 11 Jan 2019 10:29:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN5072kxU2MZSMp725ve26vFJtDmAovMgWpT/yr5JkdJgEKGx4t1RytY8zyIVfz88aNzIA8K X-Received: by 2002:a17:902:e28e:: with SMTP id cf14mr15939794plb.311.1547231379722; Fri, 11 Jan 2019 10:29:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547231379; cv=none; d=google.com; s=arc-20160816; b=CbUVJ3LI4CFLkRd1HvY7mzumD6f1ABLqJPbXfil9WkKIYp2KOLTBqLkMosj4pmprIH FMpukvC5Sapjy80H2Myl4Yg2ZtomoEGH9zXPIDxEVhurGwhGpSFuoPPzILehydR2ejGQ OU2U7KZdtLps53HlOglwIbYZxD337BtvqpO9UNEHHnA/ab3yPI5sCd3m3heyo+YKMb2/ bT+bf4HP1hN4XobhLdSAg20OMk9RJPya+VTSlhukYLAPSFRWt2JpzEqyGKuVWs894SL5 ARlr+bOFhfKmdqyyO7sh5xrNg2BnYtGB1mAShyaxOW5+7EXw9F8kEmCGyzardcaTK69w 3NLg== 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=aferkkd1leTtwOAcuzk6bFZaWtmLThlBJMmCKVpHRcQ=; b=R/7PriBB6sy8ojZOOb9QzeHtpVeqXoRYgb0KWDaVAyrma1pC3PEm952pqHeNnZNhTD sV0Y7yzhvTdDPbVZJj7NbxLzHkOmNUkFaCvm969IvLN0I9d0LCISAAFv+9+5w0lNWCAz OBpcEs+NG7P+ymUwa+4ybWO1MV8DCtybPD2x7j/8LC+X3L7HUVFvHzYDHwavZGyK/3Gq SVjk5lqc0NFTdfDLEVTSranzIZTyeA6Tf60fDHHkwQsvP2Fws0YhfMDnP63w6YjeQWvp 2V0LpTtFPkctkennQGASSECgFok7kVZ7Jn1aeXCsexVq/s81jIcmipCxeZosL6/zUlvP ZxYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AXSh0S9+; 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 n15si6399898pgk.27.2019.01.11.10.29.20; Fri, 11 Jan 2019 10:29:39 -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=AXSh0S9+; 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 S2387564AbfAKOQI (ORCPT + 99 others); Fri, 11 Jan 2019 09:16:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:60414 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387550AbfAKOQG (ORCPT ); Fri, 11 Jan 2019 09:16:06 -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 161B42177B; Fri, 11 Jan 2019 14:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547216165; bh=1lRnoQcT6JvBEScvKhR1ZbjtxTTOweW+zH8rn45s4AA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AXSh0S9+7iGaxbkqWLWq/P/9hp9WwJaL+bzbMrL/kYt/XwHd+C/c1qiPWtBbDAHkb CXMAbF8BY1tcrDzgmx9b9eA3iEk3cFzXzalnuuVMnepabE8CZuKZFcMFu3BQhWTqpS VyOuGXUBgdKewwOtzGrc2McqLMLDpuWDKeGOwkvU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Yan, Zheng" , Ilya Dryomov Subject: [PATCH 3.18 45/47] ceph: dont update importing caps mseq when handing cap export Date: Fri, 11 Jan 2019 15:08:30 +0100 Message-Id: <20190111131001.960851612@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111130956.170952125@linuxfoundation.org> References: <20190111130956.170952125@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 3.18-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 @@ -2830,7 +2830,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)