Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1114405lqo; Thu, 9 May 2024 05:22:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSidjjITLwrPJx1L99sK7g89X5cd6MncbcUEomGfU8rki42vqUlVB26xFVob5VHLKwnbQDzFfnpDy386ipfn16JE9S08VKXJESzFefAw== X-Google-Smtp-Source: AGHT+IHSz9Jt4ymjwRuH30amDMEvl6TUc3A8RJ2TEEZ4Yd9vbXD6t/nAERA9M6eGoqqxiEHy+6XE X-Received: by 2002:ac8:5849:0:b0:43a:f4ce:121b with SMTP id d75a77b69052e-43dbefa4743mr60349811cf.41.1715257336451; Thu, 09 May 2024 05:22:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715257336; cv=pass; d=google.com; s=arc-20160816; b=BkAItK7gdwo4o1eQruE7wSJKoh6TWCX000dwbwoosncAE59NMjSBWiq9cAQBHF43P9 V88vlabJeAQTPQMIvG20nFO1RO2hWdF3IEaygXcVUiq9c+DC5kCE3OktBL6ZjLpWi6lT dea/mpgdRxkZ9oMJvYsdWLh3F65SgoZNIbR1XXhoixcNjHZjLACBrDaqDMIsaEUbqexp mB/32rA5FUEPl5m2JqC5ibzwpWpe0UJT5djIOjvKV5O3zl4zmD3e5XDIKAQnsqKTezfZ JmZNDlQvpUi+IZtItmEvKUf/9TqDZlsSKNILP9thWCUqPCxDk5UpheexcncHPxuUmrjX HLcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=nPV83gPEHyxLIFZ7F9Y6cjIXtkNTQnZuYbHgDD2BigE=; fh=f4NYv3G0ZZc2KhOEDPHXSL0e9LNdW1Bhw2dPjS6ql1g=; b=J7fggH8bnsBYIe/Y6JUHAWKgLDkWupJNNr00clBGfibDiFhrsp8FQboDkFYRi4Ktq5 WzHNvr1VAeIxaq+xgm0cChS3MaxsonAbWdqYLsWTPKQrD32O7SNbKH8O6pIiItCxRpBQ K1xr35uF3akYuzpP3PzgOk/Zj0+wLffa3kbUXc0TtHbjFL9GL/dJCHbCSXanJC051yYS Koi6pKxuaywYAnnN9BjDn6+Xf72eF0CHhjKScW70MX5dvx2Vvj1YFPNc+zMdGQacJaiL 8wR+VWd1PcmBQJlAD6bMOzGeHtBq1gfLX3jC7emOF29IMyS0iRxOsvxJyt5puX69LeAF POLg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-174494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174494-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df549f000si13482291cf.25.2024.05.09.05.22.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 05:22:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huaweicloud.com); spf=pass (google.com: domain of linux-kernel+bounces-174494-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174494-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 986A91C223B6 for ; Thu, 9 May 2024 12:22:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 30E4114F9DB; Thu, 9 May 2024 12:21:25 +0000 (UTC) Received: from dggsgout12.his.huawei.com (unknown [45.249.212.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 369B714D297; Thu, 9 May 2024 12:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.56 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715257284; cv=none; b=rCW/5uoT6C2mulmrxajro0nal9Mdgw+CkWadmzCJBd9dkId6hTq36QjZAQt2al63JHz5Ov9rv1n6lBxjfDWpT9kdzT+5vD/N8u2MggPmylFxW/XnGxCg5MXfrnXtTW7ghAiJX1bYkPQR7taKEfh9yRXJ7GdFYWJY/oY8F3uSbHc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715257284; c=relaxed/simple; bh=qPkKMd3dRk5PSqSUr6KcBI4uTLGKQmmLveiJ2qXLVKA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=gAriNtumKlV+n3i42s8A4yo/IiHhmtWKWoh1pK4oXQrT5mLB2aJ4iwGJ8wA6DAY9uF0U1luLBSSpe3tpZ2Xv5vxpCHH6wh+x/K6vhWfhgjuwC+IZRN92+ZrrZ3ABDAKTyW5JEoNRkHOoh+B3AMgffmizmzZlkFPSi80Mrv2DFfY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com; spf=pass smtp.mailfrom=huaweicloud.com; arc=none smtp.client-ip=45.249.212.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=huaweicloud.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huaweicloud.com Received: from mail.maildlp.com (unknown [172.19.163.235]) by dggsgout12.his.huawei.com (SkyGuard) with ESMTP id 4VZrhm0fCBz4f3jMS; Thu, 9 May 2024 20:21:12 +0800 (CST) Received: from mail02.huawei.com (unknown [10.116.40.112]) by mail.maildlp.com (Postfix) with ESMTP id 6DFB31A0C85; Thu, 9 May 2024 20:21:20 +0800 (CST) Received: from huaweicloud.com (unknown [10.175.124.27]) by APP1 (Coremail) with SMTP id cCh0CgAn+RG+vzxm2lnBMA--.55991S4; Thu, 09 May 2024 20:21:20 +0800 (CST) From: Hou Tao To: linux-fsdevel@vger.kernel.org Cc: Miklos Szeredi , Zhao Chen , linux-kernel@vger.kernel.org, houtao1@huawei.com Subject: [PATCH 0/2] fuse: two tiny fixes for fuse_resend() Date: Thu, 9 May 2024 20:21:52 +0800 Message-Id: <20240509122154.782930-1-houtao@huaweicloud.com> X-Mailer: git-send-email 2.29.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:cCh0CgAn+RG+vzxm2lnBMA--.55991S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUU5L7kC6x804xWl14x267AKxVW8JVW5JwAF c2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII 0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK6xIIjxv20xvE14v26F1j6w1UM28EF7xv wVC0I7IYx2IY6xkF7I0E14v26r4UJVWxJr1l84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4 x0Y4vEx4A2jsIEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG 64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r 1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxG rwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4 vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij64vIr41lIxAIcVC0I7IY x2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26c xKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x02 67AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUrR6zUUUUU X-CM-SenderInfo: xkrx3t3r6k3tpzhluzxrxghudrp/ From: Hou Tao Hi, The patch set just includes two tiny fixes for fuse_resend(). Patch #1 replaces __set_bit() by set_bit() to set FR_PENDING atomically. Patch #2 clears FR_SENT when moving requests from processing lists to pending list. Please check the individual patches for more details. And comments are always welcome. Hou Tao (2): fuse: set FR_PENDING atomically in fuse_resend() fuse: clear FR_SENT when re-adding requests into pending list fs/fuse/dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.29.2