From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56719C43387 for ; Fri, 11 Jan 2019 14:40:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2821C2063F for ; Fri, 11 Jan 2019 14:40:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547217649; bh=Iy4N7ZtL4Hc01BiVMAyJkjYkZBb2rbYl8ufDW0D8fCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=K/19T/o22lO8e+rcbNUOeupriR93cXp2r678Ih0mim82atLnZK0q3PkBLLDc4NWUb 4jP8k+FtjWTQmHzmL1Abv+ZNfUhWV2RkwSA8nAgcCKWlyI8AamqKYzxnK7FzMIZ2LM 8bJCrZ8zZMlCogPS19RFdW0HFlbwXoaOLTik0d0U= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403912AbfAKOks (ORCPT ); Fri, 11 Jan 2019 09:40:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:33370 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403895AbfAKOkn (ORCPT ); Fri, 11 Jan 2019 09:40:43 -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 BB3E7206B6; Fri, 11 Jan 2019 14:40:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547217643; bh=Iy4N7ZtL4Hc01BiVMAyJkjYkZBb2rbYl8ufDW0D8fCQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HMmxn/zP//pgO407/mnfbHHe8KsmIENEz3fLxp8206wNRrULq2B+yaE5862VAz+Ep nvqjQl8LhE47VAwqDAlTNeeckqoHjDs3tHllwN1bfNcD+syQKwOLy7SATNYM7nVXh0 VJdvoQ6pj52O+6OPDsJRTZpR2M2n2rpS0mRCryhU= 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.19 136/148] ceph: dont update importing caps mseq when handing cap export Date: Fri, 11 Jan 2019 15:15:14 +0100 Message-Id: <20190111131119.708959113@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131114.337122649@linuxfoundation.org> References: <20190111131114.337122649@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.19-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 @@ -3566,7 +3566,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)