Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp397276rwd; Thu, 8 Jun 2023 02:12:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5LwkIYVzcyTgt1/UCVbTSMXi58fJEm/XaL5+YrSIwdJLmMAGzuH8ltCSbqE5B6Atiih3p3 X-Received: by 2002:a05:6a00:b52:b0:65a:710a:7855 with SMTP id p18-20020a056a000b5200b0065a710a7855mr6915363pfo.26.1686215538665; Thu, 08 Jun 2023 02:12:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686215538; cv=none; d=google.com; s=arc-20160816; b=zpsEwz+QVgRmTVIpSRTb4kJLYrspgnTRp+DVHj/YxgE8D0yJChUjdq3srTbVjdkstX wNgXvbJRh14Tgn8BcP/lxElDmpAqzFSF8IqS8C5HuJpltBp9kBbEH1cx4WAGvYmIIfNk cczto+Wv2+2aJwueaW7Kgq4Hx5U+kpy1ARYR3ot7dMEyD+XY8PEEjAMoBYL4Tlgz12ab rIPQRqkNVbSUBM+JtPHlDjcLyz8CnEOdgyrs0+zQ3WEPgMbgSdqVxr0eIQjtdGkWYBAh 5la4eEMNfFI4DpFj/hjmFgzcBbtwkBg0m4giSTLxurpzgKs/pbQHFMh/M0463S/rOL9J b61w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ReHVJUdk4k/dMmoONA2QuZAXZtonUaqX3/C9lDPVK7g=; b=MpOOSWXIY7K1edOEPJDXcHyTRMC5fMoSrvO+igsELfY6p4YHpsQVMBUsSM9lDCyQzr 0HvVHPseV3icYsHiOU6k1lmkBgpAnAHnex4MC3Utb5B7E4Ir3BoOjaUj0WabjjvlNP3C zcgPlBOwMga8H1Vg3lT+d/8WTg19WETPyyWHTNkpEw0Aw10dSLbUaIEmVe9sh5WnzFAs EMMtQ4zT0gMMv5OfXkhgaHq3J1WVJWBNbZYAT8kbHyXpPnrNXGdKFcn7T7DV7gCQ43EY qy6FM/XEyOUs35Q7Z9QRvuhZ8QRV7dwxk2B4dhRBBs5IGlz5zZUvm39jMRaGs0P4Dq+m qthA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=GoEKseHh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g190-20020a636bc7000000b00534839d1219si730758pgc.138.2023.06.08.02.12.04; Thu, 08 Jun 2023 02:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bytedance.com header.s=google header.b=GoEKseHh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235549AbjFHIrf (ORCPT + 99 others); Thu, 8 Jun 2023 04:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234052AbjFHIrb (ORCPT ); Thu, 8 Jun 2023 04:47:31 -0400 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71461E50 for ; Thu, 8 Jun 2023 01:47:05 -0700 (PDT) Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-390723f815fso245964b6e.3 for ; Thu, 08 Jun 2023 01:47:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance.com; s=google; t=1686214025; x=1688806025; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ReHVJUdk4k/dMmoONA2QuZAXZtonUaqX3/C9lDPVK7g=; b=GoEKseHhe6g5uipypMbKd5f27TlU0oqBuxJ/QolY4p7yzPmkIcGgaRB4S0Xuddp3gp yuId9mvz9khBjKzctq01FLHIVLEdmJ3VGacltmZr/k/nhEE/Pt0kjzjQuBp4Qne9XEVi gek3LxAiDmral6i5MarJnwSwADHn//6Wg9xQFOTuQgiBE9zM/LVgztU2Y+1jyjj5vlNF mEBQu/RQg7wttIxS7Ako+IGmc2UliHmSrRWKXXZWqTWpY3n9tuI02AYlMfc80l0Y60B/ JP4SOIpfjfCWgIa+nh2tZpwUETfZpwN122ZoK6cuB1y6u1CVd1Dc8w3XxhffPI//vqLf bsJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686214025; x=1688806025; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ReHVJUdk4k/dMmoONA2QuZAXZtonUaqX3/C9lDPVK7g=; b=VYhROlgBTztUoCmHpOxrvZbTVGw5ltlqqMN/hS9yAiFCfj+57Behhnx/lOM2uW1OgZ uf9zRFP1iwkonQaxw1uJLvQ4tuqRmnd0bOsXo4wEMYyitzcibbudRpU29xuSBblbs+RD 7fSdeCGzPQQuQg/jKPE4umtFCmaXjXghXLOInsBASolD/1BxAheflijDkgIDDQo1lEVa xcNuumYj9FZ6UgNaTYgCmljogBnoVbe1E5sLyp+yJaNdgkxrgoIiG2pMAA+VBcHn/tZH gfBhqCjQosAXbdaUpnBSuAzmB7cEtZa8pvtclD7kteS3XlVYhceRAgdk96CPQkOphLEc Sk0A== X-Gm-Message-State: AC+VfDzCujlQAGE5zb6+03U0rB2W+0XyacrUOSAQW1cG8oKvcst2Hx31 0Vf8qT3r2l5E1zVowtrXm2TAGg== X-Received: by 2002:aca:220d:0:b0:398:2e8d:3ca7 with SMTP id b13-20020aca220d000000b003982e8d3ca7mr5196004oic.56.1686214024838; Thu, 08 Jun 2023 01:47:04 -0700 (PDT) Received: from localhost.localdomain ([61.213.176.13]) by smtp.gmail.com with ESMTPSA id 23-20020aa79157000000b0063b806b111csm614160pfi.169.2023.06.08.01.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 01:47:04 -0700 (PDT) From: Jiachen Zhang To: Miklos Szeredi , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrew Morton , me@jcix.top, Jiachen Zhang Subject: [PATCH 0/2] fuse: fixes for remote locking Date: Thu, 8 Jun 2023 16:46:07 +0800 Message-Id: <20230608084609.14245-1-zhangjiachen.jaycee@bytedance.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patchset fixes some small issues of fuse remoting locking. The first patch fixes the missing automatic unlock of fcntl(2) OFD lock. The second patch remove some deadcode for clearness. Thanks, Jiachen Jiachen Zhang (2): fuse: support unlock remote OFD locks on file release fuse: remove an unnecessary if statement fs/fuse/file.c | 21 ++++++++++++++------- fs/fuse/fuse_i.h | 2 +- 2 files changed, 15 insertions(+), 8 deletions(-) -- 2.20.1