From patchwork Mon Apr 15 18:33:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 10901363 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 760851515 for ; Mon, 15 Apr 2019 18:33:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62A7028862 for ; Mon, 15 Apr 2019 18:33:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56C64288B6; Mon, 15 Apr 2019 18:33:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 05D6628862 for ; Mon, 15 Apr 2019 18:33:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728043AbfDOSdf (ORCPT ); Mon, 15 Apr 2019 14:33:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:41862 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727543AbfDOSdf (ORCPT ); Mon, 15 Apr 2019 14:33:35 -0400 Received: from tleilax.poochiereds.net (cpe-71-70-156-158.nc.res.rr.com [71.70.156.158]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 64C3020854; Mon, 15 Apr 2019 18:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555353214; bh=DHKWDbw69ZOHMo1BQQGwR6rxUcqx9rd+Qu36L5fC+NE=; h=From:To:Cc:Subject:Date:From; b=umk35MYqrMyKUcZrLcYiwqqcfsXKvbLYzkjuv74BMUQJXKKpQouVX99/9BY0W+CO8 XCNTV6j7GiHggDxmQwTy10QaMq2THF5tc5hNbFA2eUDYfU/VEPgQTbBrZsk3zqL5RD UI5A5/eE7KUptB5eG5g0piVgtmVEodzKgXr7UCuI= From: Jeff Layton To: zyan@redhat.com, sage@redhat.com, idryomov@gmail.com Cc: ceph-devel@vger.kernel.org Subject: [PATCH 0/7] ceph: various cleanups in MDS requests Date: Mon, 15 Apr 2019 14:33:25 -0400 Message-Id: <20190415183332.25581-1-jlayton@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patchset is set of cleanups for the MDS request handling code. These are mostly intended to allow us to do async MDS requests in the future, but I think they make sense in their own right for v5.2. There are also a couple of cleanups to the cap tracking code as well. Jeff Layton (7): ceph: after an MDS request, do callback and completions ceph: have ceph_mdsc_do_request call ceph_mdsc_submit_request ceph: move wait for mds request into helper function ceph: hold extra reference to r_parent over life of request ceph: fix comment over ceph_drop_caps_for_unlink ceph: simplify arguments and return semantics of try_get_cap_refs ceph: register MDS request with dir inode from the get-go fs/ceph/caps.c | 78 +++++++++++++++++------------------------- fs/ceph/mds_client.c | 81 +++++++++++++++++++++++--------------------- fs/ceph/mds_client.h | 5 +-- 3 files changed, 76 insertions(+), 88 deletions(-)