From patchwork Tue Apr 25 20:37:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9699723 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B6FE160245 for ; Tue, 25 Apr 2017 20:41:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3C1E2807B for ; Tue, 25 Apr 2017 20:41:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97C4C28485; Tue, 25 Apr 2017 20:41:19 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 029CD2807B for ; Tue, 25 Apr 2017 20:41:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1950477AbdDYUlI (ORCPT ); Tue, 25 Apr 2017 16:41:08 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:57274 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1949789AbdDYUlG (ORCPT ); Tue, 25 Apr 2017 16:41:06 -0400 X-IronPort-AV: E=Sophos;i="5.37,251,1488816000"; d="scan'208";a="13853219" Received: from mail-bn3nam01lp0178.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.178]) by ob1.hgst.iphmx.com with ESMTP; 26 Apr 2017 04:41:05 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Y+ikw8LqHEPtmOOAL3Xz5IWH3hXwP0mnVGE+lFN7wG0=; b=fOfTPspa+sTPfqZYfFFeSNR6Z/FsM5hWbcWpOR575mtHVrgWp2iD2XBZrO9VEkKUr18WVIXS2sg5aywBC57cQGaQtklyGjQJoX1aIdbHOdCwqyiMhDvTqbtql7wus3nt1r7LttyJRjRBGulqH7yJkmkbj7sY/zwY8Bmf88IJdVo= Received: from CY4PR04CA0028.namprd04.prod.outlook.com (10.172.133.14) by DM2PR04MB413.namprd04.prod.outlook.com (10.141.102.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 25 Apr 2017 20:37:51 +0000 Received: from CO1NAM04FT012.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::204) by CY4PR04CA0028.outlook.office365.com (2603:10b6:903:c6::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13 via Frontend Transport; Tue, 25 Apr 2017 20:37:51 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by CO1NAM04FT012.mail.protection.outlook.com (10.152.90.115) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Tue, 25 Apr 2017 20:37:50 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id E2.1F.29323.D93BFF85; Tue, 25 Apr 2017 13:37:50 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 25 Apr 2017 13:37:48 -0700 X-AuditID: 0ac94369-548749800000728b-d5-58ffb39d633c Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 09.2A.18148.C93BFF85; Tue, 25 Apr 2017 13:37:48 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Bart Van Assche Subject: [PATCH v5 02/10] blk-mq: Let blk_mq_debugfs_register() look up the queue name Date: Tue, 25 Apr 2017 13:37:37 -0700 Message-ID: <20170425203745.19946-3-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170425203745.19946-1-bart.vanassche@sandisk.com> References: <20170425203745.19946-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsXCddJ5ke68zf8jDOa/YrNYfbefzWLvLW0H Jo/LZ0s9Pm+SC2CK4rJJSc3JLEst0rdL4Mo42/+LvWCDcEV3TwdzA+N6gS5GTg4JAROJSSuW MncxcnEICSxlkrhxpJENwtnGKNH2di6QwwFW9fSDMkR8M6PE7Y5rLCDdbAJGEt/ezwSzRQQU JHp+r2QDsZkFAiWWTf7ADGILC4RJ3NjaxwQyh0VAVeLsCk2QMK+AvcSnTSfYIY6Qlzi7ZSdY OaeAg8SKK91MILYQUE3Xzl2sIHslBJ6zSDzZuYYZollQ4uTMJywQuyQkDr54wQzRoC5xcsl8 pgmMQrOQlM1CUraAkWkVo1huZk5xbnpqgaGpXnFiXkpmcbZecn7uJkZIsGbuYLz7xPsQowAH oxIPb4DH/wgh1sSy4srcQ4wSHMxKIrwXlwCFeFMSK6tSi/Lji0pzUosPMUpzsCiJ856TmRoh JJCeWJKanZpakFoEk2Xi4JRqYFSK/JblWCSWevM4+7aJS4wuJTB+ZZoV8FpAZOaniqLrLeef vwx/3b3h0s3JX/zESn71fDySwnpY4s0EjYXHUxdUl0XcCl4Xta6+KzFX27JLKfnexc5jbnNC xLuumzGeWHkjZoFi7j+lidFxYt22sRvOW8+T+nDgnaIk+2kXgZM8ZVe3VBz8bKrEUpyRaKjF XFScCAADBRU0UgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkuLIzCtJLcpLzFFi42Lh2siRojtn8/8Ig13Nyhar7/azWRz82cZo sfeWtgOzx+WzpR7T1pxn8vi8SS6AOYrLJiU1J7MstUjfLoEr42z/L/aCDcIV3T0dzA2M6wW6 GDk4JARMJJ5+UO5i5OIQEtjIKPH72j3WLkZODjYBI4lv72eygNgiAgoSPb9XsoHYzAL+EvsX /gOLCwuESdzY2scEModFQFXi7ApNEJNXwF7i2hIVkAoJAXmJs1t2MoPYnAIOEiuudDOB2EJA JV07d7FOYORewMiwilEsNzOnODc9s8DQSK84MS8lszhbLzk/dxMj2MOcUTsYr080P8TIxMEp 1cC4/aTz1SbGexPv1dz7/41Xasp3nkefU7zWmtX35lYGSnQdZvqxervcPSvz5oXasqu4rr/f tcb79gXL199uKId98XC4YcoS9om9u+fKrgdOHJwcn6+GPpFv6BBNuZVw0jbDqlq49Zn5nnsV ZV6ntFPuu4XtWeO81+euJOejhQdPeE3c3j+BP/yxEktxRqKhFnNRcSIA6K6HGqABAAA= MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39400400002)(39410400002)(39860400002)(39840400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(54906002)(50226002)(1076002)(53936002)(47776003)(106466001)(4326008)(33646002)(575784001)(107886003)(2950100002)(38730400002)(86362001)(77096006)(6916009)(110136004)(6666003)(305945005)(48376002)(8936002)(36756003)(2906002)(81166006)(8676002)(5003940100001)(356003)(189998001)(76176999)(5660300001)(50986999)(50466002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR04MB413; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT012; 1:ivcdKUERXL8Qjas+mE1MKnnj9gO6DAhVrUDJtPljbyskc949xpQWTOnrryWhkDmN4fRbNdgHBL9f29OiUb5TwoeOeI0GI/tYQYvhd9gHwLqspsYsGWvE177W8H6aGXnHwYt2FWXO7JYH5h86sc2dJ857ZHdJKR8dZQAzIqzDTs8BH+WsIz/nokMOqLmXAZODg1od2PHAd6pZlsfpxb9UAP3T1GsQsrbJy5KdomkpbPoRwcCs2ugTHE2JqqeNZkRx9kGYyW8Wld5kKDiiD5adLrbzcFBuDdwJjMSjcL9bQOUFJQjOrGTDb0K5Fxaq/yrU6ubRxaLMPAuueyTKGQdXMsrTW5oaG/p2+5LmkeK6fcePthMmJVKRlZDsA6lQc/f9YAp23f3/g6/rdoF9bMWtdG6hE624IcySP4qp5tVLrbkgqpzkmhMg7ISpVs2m3IG1L4WvKOxTeR3zrJoPXZnqwYqmVCvwG+F5mvRujwqgHumV6kBKwbIG67CEWccHJVlUmgSjJJAab1wkbnGxqSQp5koMa44FUNAyY7zEicpjy4o= X-MS-Office365-Filtering-Correlation-Id: 3967bc44-e478-432d-33e7-08d48c1af12d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM2PR04MB413; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB413; 3:KIUwb64j0keZJassR8zviRMwO1B7jU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SseXpXsIdHTSI86boqrsKLE1moTLPh1TaOmmM8AMiqkkj+lisDODUSLSlsoB0aw8q9Aa0jTvvDEsUZaEbt07YYJxL5To5XguUHKO5D1ljBRzZ4oyS3o/3U318/ua3xCtCgb3WicOWvI/BOpttOEZV7DyBN38/OVJKlRZpZMYNC5SmfIhp3jFwcAHKy0E= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB413; 20:YW9SfaZDDZ+cyJLGWQ2vquAh5WEXml1dT4zIkPhhgGnehYBzYlGJZ5h+iR2Wx3DTcDi4kpp5bxNiLYQS9Me+3H+9mrYqGXSP7K4hZqenC2MyT8NlyCGuzwH22CFTy3Q6XEf86tPpC8ZFv4xEXnqc4+ZRz5WR3mmnbWYkdP0iQt84f0nCouldQHqHxjAKsnKI1uHNUjpDpHxOMKRTLz+la+kv/Uy74T1hzUBPLmapv0QGRHEl/6fn1914mj3fn0K89XGxSgDYJ8+jZhtgwMCXXiajdPzVmRC2jJ9AmKrmn1duOyo2YRNHO2IDW0FmVdza41hrRIt0vKhWIBCx9laQmf/b09smN8GYspm5u6GPFnjkw3SAXwsqjfOsMyyVl/TjZLZUhgSp6EM9qRnBLNoBNzz2vouDGkdkfV5SkAD+4/kbVoArtA4M1XU2qTqLUgb0fljM8Adz/4EjroNKwQyStiGeqs2R/36WQ7I5FRPSZ1/sCmTOyT/0ICo960XZAnIw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(20161123562025)(20161123564025)(20161123555025)(6072148); SRVR:DM2PR04MB413; BCL:0; PCL:0; RULEID:; SRVR:DM2PR04MB413; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB413; 4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o/s?= =?us-ascii?Q?k/0U8YLVAtYz2RY3eMyyz2Xx59Id7/R1cYTG1tEOLVbXIUglzPLn0Zi3KPeG?= =?us-ascii?Q?2M0w3aD+6/w0Mb3B4oj9laSGmQo26ljFPvFqD6w57aak5K+w=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB413; 6:MUhy9K+1plNP+bQ3SGOk5ZeT9mRBFhu8OUOGW4yiMHhLQ3TcNjE5POWZhuc/8N6H7U+xXNV+Bj8stWp+iBfTCcgLCZVnxWFLwjwy1Tli0kE5jt0jVMCCR7RSMPQKUssSBGX85nzUgoTiPOG/GsAfOoMODKv96Zdenv+Dxb5oGb2RfEWIM2MCFhAk2+EavIedtmibEjh4KSuzllm95Gnr/AR0vZSal26vsaml4G0Eb5KHBbH/WBDwuWUBro83JvrcmFoY6TZGK8y55pDMHyKL52KhWQr+0RDIMY+8uze23qZ4YHJINDXnVpazdsbkrAkmxRR/wbJ8Bswz38yjPIjmnWdNr60s8HhSNI5Lr3iXw91flnbLVripVXSrNR+XBT1B7JqmvDbh/HPzHtlLf9ochYOTxF5lY08Qlp8BTvU1KON+2XtM+TjRZqw26O32jidITXpiMpDcAup5DpxJdb+Jx9IhsQLF7vQ5wgFfsPJCNqafHaQVhV8hAHgsYZk/FYqA+1eLOpaFfMDOQb/WdhG/N7zx+aRFEzkMIKiFVyWANN0=; 5:cBfBeKBJIxLlFalFXlaDU5lQ2rKl8b1PWSNSH9RO3Q//YAbljujCfoGUeKhK5y1NLdE9uLduJ9ELhgApydvzwE4/aXh40fH+nixILAb7GM5LRQ72RXXo7KJR40waOb6hTFujj4604gHxzY+VxZrKGA==; 24:WsKuAcaYdt7+sDENx1G+9O/hLwbvdzRidu2H3yLfbLBhpGJQorputsHYbmR0my5k+/YNsP+FEqmhiETYLguIlIQaPN8LGCMSuV7DxcYid24= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB413; 7:3EHplua9aMcnvBtJhFT2TGVaPK3LLmU2C5cX7BG3a6ob8xsVjuZxBOCZngNtxAhCIdd1QqNvxEXrfYjgi/gWbjDm6kQzePJjkVWFvs922yXKPT0DYHVtXd6C66ZXpcOJkuvLhhbit9BAefYv0yTh2++9PLPeE3PNW3VSoup3XxFK8l5xDWV81OyauD4L1pj0zMhaYOvksPnmVkKXmLR+Tvu0DMR6eKGAp3wCWu5hMT+vPESu86sKqM9FB6IMrBTGxIwjU07FnI7I1DPk0NSUU67zjoqX0flqdFXUadfQ0LL+Q4tXCjuylVt+hZM8fe7QgAMieVxhIXW3ulV+Nm0TWQ==; 20:EDpzRbxDojqNqanvMUhL6MepaDPvhxlAmogsXz87YCc7lKCYD8F9V/C4Gv2FHbt7e3wzMu/s777DAGN0IZPuCXxCLuqB/vb1rh1dwX7W2LlafAec2gUtWFe3Mg/yf8X1kbFXzwLSNZXUTNq0rBEpkxGwWYV9ywQVbh7ANM474Us= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2017 20:37:50.7829 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR04MB413 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A later patch will move the call of blk_mq_debugfs_register() to a function to which the queue name is not passed as an argument. To avoid having to add a 'name' argument to multiple callers, let blk_mq_debugfs_register() look up the queue name. Signed-off-by: Bart Van Assche Reviewed-by: Omar Sandoval Reviewed-by: Hannes Reinecke --- block/blk-mq-debugfs.c | 5 +++-- block/blk-mq-sysfs.c | 2 +- block/blk-mq.h | 5 ++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 3057641d5d15..e9282b945f6b 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -785,12 +785,13 @@ static const struct blk_mq_debugfs_attr blk_mq_debugfs_ctx_attrs[] = { {}, }; -int blk_mq_debugfs_register(struct request_queue *q, const char *name) +int blk_mq_debugfs_register(struct request_queue *q) { if (!blk_debugfs_root) return -ENOENT; - q->debugfs_dir = debugfs_create_dir(name, blk_debugfs_root); + q->debugfs_dir = debugfs_create_dir(kobject_name(q->kobj.parent), + blk_debugfs_root); if (!q->debugfs_dir) goto err; diff --git a/block/blk-mq-sysfs.c b/block/blk-mq-sysfs.c index a2dbb1a48e72..afb3451cf8a5 100644 --- a/block/blk-mq-sysfs.c +++ b/block/blk-mq-sysfs.c @@ -318,7 +318,7 @@ int __blk_mq_register_dev(struct device *dev, struct request_queue *q) kobject_uevent(&q->mq_kobj, KOBJ_ADD); - blk_mq_debugfs_register(q, kobject_name(&dev->kobj)); + blk_mq_debugfs_register(q); queue_for_each_hw_ctx(q, hctx, i) { ret = blk_mq_register_hctx(hctx); diff --git a/block/blk-mq.h b/block/blk-mq.h index 7d955c756810..9049c0f11505 100644 --- a/block/blk-mq.h +++ b/block/blk-mq.h @@ -87,13 +87,12 @@ extern void blk_mq_hctx_kobj_init(struct blk_mq_hw_ctx *hctx); * debugfs helpers */ #ifdef CONFIG_BLK_DEBUG_FS -int blk_mq_debugfs_register(struct request_queue *q, const char *name); +int blk_mq_debugfs_register(struct request_queue *q); void blk_mq_debugfs_unregister(struct request_queue *q); int blk_mq_debugfs_register_hctxs(struct request_queue *q); void blk_mq_debugfs_unregister_hctxs(struct request_queue *q); #else -static inline int blk_mq_debugfs_register(struct request_queue *q, - const char *name) +static inline int blk_mq_debugfs_register(struct request_queue *q) { return 0; }