From patchwork Thu Jun 8 08:46:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiachen Zhang X-Patchwork-Id: 10472 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp148132vqr; Thu, 8 Jun 2023 02:20:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bNxiBC7T6p3MLJy7kyXwjdRp5pOa20B59MGh+2NtOV3A9vcLnIToAED+cWzHbo2sf5ZR0 X-Received: by 2002:a17:902:b183:b0:1b0:4934:88bc with SMTP id s3-20020a170902b18300b001b0493488bcmr5191793plr.47.1686216041247; Thu, 08 Jun 2023 02:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686216041; cv=none; d=google.com; s=arc-20160816; b=1DFyilrlW0VPmTwCg6sRCwWGES8uCdJkm+m++FQy5F35oJaB4pMeSSe3XU4Uch3orX fJCJaA9WY2my6u7mgpSwdEsbAVspI4E+hup9pe9AZSdwOywA/1wBWa1Kj3ejUePNAr4D DrVPB/83z5lkoT4OgxRbK3RFC7EHV1+TcFvlDa3UqKjz10/nj2pyCg/rLzGCM9wZammy PPXUeDIIkgX3m3AwzZy74DRN7fYAbpW/rvRunALqTgYmEu5BP8ZM9bYq5lnC303mSOsy nf7weiwPL+PeoL8Bb2kJWK7qIc3UsZygjbYa1jLDxAR0ULIXyoocIrjhFGgl5Pzj3jvi 6Xaw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a13-20020a170902eccd00b001a52db202c7si804517plh.382.2023.06.08.02.20.29; Thu, 08 Jun 2023 02:20:41 -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 S235569AbjFHIrg (ORCPT + 99 others); Thu, 8 Jun 2023 04:47:36 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768125671807651343?= X-GMAIL-MSGID: =?utf-8?q?1768125671807651343?= 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(-)