Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1398688iob; Thu, 19 May 2022 05:59:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqbE3r9ck+wdzMPzMRV45jLY/UyGupFEhkFwQIMHtVeOn9UWZeO98KknBC/i4Lfu6eXJ/B X-Received: by 2002:a05:6402:254c:b0:427:db53:dfb0 with SMTP id l12-20020a056402254c00b00427db53dfb0mr5141251edb.176.1652965177109; Thu, 19 May 2022 05:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652965177; cv=none; d=google.com; s=arc-20160816; b=dQrTQACoDmA2CEH/lbc1yfXew8u/1jqeediC4n06vB9dI5vNTVrkSCVcYoajg72Edb SbhJevCFNVApU4xrusNrawa+Nm78ATAsk0DvxyLH/Au9vg7piNXtM1bX2lH6AvaTorfT YfgcWdwTygIkkZK+M6qUiSlX2LpFD5+6zZ8UJubcvYDkZBe+ivsVKQ9HxQrkNh2QN0/A dE5kYZ9E9bjqqBNiqmEyHwMV8dXO7c8U0VcD4cdxNkrXplBtzH/Y6IafFMKSZ+N1IY6o pUlnkpJUO6p/LL/53sLzWi/NjoJmY7b3Evo3bWIZ1b0GP3LsRJy01vvuF+Ogb2v7kEiz hZQw== 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=/n56EJ3OznCmswcMZwTsA38QrHXubJEjwuHDiC/LsFY=; b=02bTrdLkDojchAA8xsVTdbyqC4LttyQ3FouLboHXprstx/mB4+brcq2JJ+B8oL8q48 4xFSYP2vHsr/DOfMQahTyhcH6qb2p3VF6qBURcL63fC/qTsbfW1sAywFKrRd2xTJ4hUJ bSyuGJPyUJmS1v+Yfx4QLDM9Bq6IAa38sE75pmQ6FCpy5qbVBNkArUGFzu2OAr9Au5qC +bYVMA9iqahzN/1Pv9aFOp/oLsljKxlqoc4X31Hf01oQVzwdOJbxxXqPHGwshpFlKl4Y UU5XmkTW/W96NcpAZ75YxL+LgMeml0pjTnxgrZKS68V+uwOrzGUebOPOFeUg4mZwu9Hq 0dFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GHdTWRHJ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn10-20020a17090794ca00b006f3aca672ebsi5694752ejc.1.2022.05.19.05.59.08; Thu, 19 May 2022 05:59:37 -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=@redhat.com header.s=mimecast20190719 header.b=GHdTWRHJ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236595AbiESKTQ (ORCPT + 99 others); Thu, 19 May 2022 06:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233386AbiESKTM (ORCPT ); Thu, 19 May 2022 06:19:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1226644E3 for ; Thu, 19 May 2022 03:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652955551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/n56EJ3OznCmswcMZwTsA38QrHXubJEjwuHDiC/LsFY=; b=GHdTWRHJhBwqoly3GPFwcYkEoX2rHvQg02KAvQXVDg1SVon2vNPeHrvMSPf4mdXsSzTbRy Oca7qznOkqr/kBT18mPEheZhi8ueG7Kh8HdJgFpHX9CLSz1Lvrh9UHrf1NquUfpRd8uB3D K+Oh8P+1MbXiWlcEZ/tdpfit7DIZASI= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-491-7N-TVohpO3y4OxzBSyq_2g-1; Thu, 19 May 2022 06:19:05 -0400 X-MC-Unique: 7N-TVohpO3y4OxzBSyq_2g-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2942F294EDDB; Thu, 19 May 2022 10:19:05 +0000 (UTC) Received: from localhost (unknown [10.72.47.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id 71CA57774; Thu, 19 May 2022 10:19:04 +0000 (UTC) From: Xiubo Li To: jlayton@kernel.org, idryomov@gmail.com, viro@zeniv.linux.org.uk Cc: willy@infradead.org, vshankar@redhat.com, ceph-devel@vger.kernel.org, arnd@arndb.de, mcgrof@kernel.org, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Xiubo Li Subject: [PATCH v5 0/2] ceph: wait async unlink to finish Date: Thu, 19 May 2022 18:18:44 +0800 Message-Id: <20220519101847.87907-1-xiubli@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 V5: - Fix the order of clearing the flag and hashtable V4: - Switch to use TASK_KILLABLE V3: - Removed WARN_ON_ONCE()/BUG_ON(). - Set the hashtable bit to 8. V2: - Add one dedicated spin lock to protect the list_add/del_rcu - Other small fixes - Fix the compile error from kernel test robot Xiubo Li (2): fs/dcache: add d_compare() helper support ceph: wait the first reply of inflight async unlink fs/ceph/dir.c | 79 +++++++++++++++++++++++++++++++++++++----- fs/ceph/file.c | 6 +++- fs/ceph/mds_client.c | 75 ++++++++++++++++++++++++++++++++++++++- fs/ceph/mds_client.h | 1 + fs/ceph/super.c | 3 ++ fs/ceph/super.h | 19 +++++++--- fs/dcache.c | 15 ++++++++ include/linux/dcache.h | 2 ++ 8 files changed, 184 insertions(+), 16 deletions(-) -- 2.36.0.rc1