From patchwork Tue May 17 12:55:47 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xiubo Li X-Patchwork-Id: 12852440 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 682E3C4332F for ; Tue, 17 May 2022 12:58:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346925AbiEQM44 (ORCPT ); Tue, 17 May 2022 08:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346750AbiEQM4Y (ORCPT ); Tue, 17 May 2022 08:56:24 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 965AA188 for ; Tue, 17 May 2022 05:56:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652792182; 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=7Ilh7SutzGqct7DoxMOyniVDVZYj7Cp6A98zhpaDZQg=; b=bBV01gIbDu54TJsChzlgJvXSCp3p+ZaBOUkzTw2tHsTw9jYMmdx4E0Vj4vD9DjFc6CXbez IIIIHBJkGibfWvxPGQrMmrO1Ttb7dZQjQpPuTfktPXvzagIT68/WPIdHd5N1LGtCICjuUM Ukfl7FMfnup28xC9IDJb205vLeglXKo= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-572-pWz1Aj3EN-CYaJxZ5D94jQ-1; Tue, 17 May 2022 08:56:19 -0400 X-MC-Unique: pWz1Aj3EN-CYaJxZ5D94jQ-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8DEB78015BA; Tue, 17 May 2022 12:56:18 +0000 (UTC) Received: from localhost (unknown [10.72.47.117]) by smtp.corp.redhat.com (Postfix) with ESMTP id CB0762166B2F; Tue, 17 May 2022 12:56:09 +0000 (UTC) From: Xiubo Li To: jlayton@kernel.org, viro@zeniv.linux.org.uk Cc: idryomov@gmail.com, vshankar@redhat.com, ceph-devel@vger.kernel.org, dchinner@redhat.com, hch@lst.de, arnd@arndb.de, mcgrof@kernel.org, akpm@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Xiubo Li Subject: [PATCH v3 0/2] ceph: wait async unlink to finish Date: Tue, 17 May 2022 20:55:47 +0800 Message-Id: <20220517125549.148429-1-xiubli@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org 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 | 70 +++++++++++++++++++++++++++++++++++++--- fs/ceph/file.c | 4 +++ fs/ceph/mds_client.c | 73 ++++++++++++++++++++++++++++++++++++++++++ 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, 177 insertions(+), 10 deletions(-)