From patchwork Thu May 25 18:43:18 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: 9748919 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 B980860388 for ; Thu, 25 May 2017 18:43:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B08302679B for ; Thu, 25 May 2017 18:43:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A53A9269DA; Thu, 25 May 2017 18:43:51 +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 30A962836D for ; Thu, 25 May 2017 18:43:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1036480AbdEYSnu (ORCPT ); Thu, 25 May 2017 14:43:50 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:29728 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1036481AbdEYSni (ORCPT ); Thu, 25 May 2017 14:43:38 -0400 X-IronPort-AV: E=Sophos;i="5.38,393,1491235200"; d="scan'208";a="20374218" Received: from mail-by2nam01lp0182.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.182]) by ob1.hgst.iphmx.com with ESMTP; 26 May 2017 02:43:37 +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=DyFIMA4MTuiEUPSJxAgKiuGMojsgVvuF2ymo0mQOTrg=; b=cdH72YAgl0XbYRAFtCrGp7RkUQiUeYNUJ0Lvc6IS4rEtqEbwEHm4ZvahYV7uhstmcNkFKFkxaZyUP1rdQQxIaiOEJk5xEDCisdC5eLNPCVkN5oGdw00Qa0yzYJDofIRsXiDzo0MsPevPgYscJS0FUR4bQS5YR9UtQJRMp5JjsWU= Received: from BN3PR0401CA0029.namprd04.prod.outlook.com (10.162.159.167) by CY1PR04MB2314.namprd04.prod.outlook.com (10.167.9.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Thu, 25 May 2017 18:43:36 +0000 Received: from SN1NAM04FT019.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::202) by BN3PR0401CA0029.outlook.office365.com (2a01:111:e400:51d1::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Thu, 25 May 2017 18:43:35 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by SN1NAM04FT019.mail.protection.outlook.com (10.152.88.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Thu, 25 May 2017 18:43:34 +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 9D.2D.19026.4D527295; Thu, 25 May 2017 11:43:32 -0700 (PDT) Received: from milsmgip11.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; Thu, 25 May 2017 11:43:28 -0700 X-AuditID: 0ac94371-41ba798000004a52-9b-592725d435e4 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 5C.E8.11415.FC527295; Thu, 25 May 2017 11:43:27 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH 10/19] blk-mq: Change blk_mq_hw_ctx.queue_rq_srcu into an array Date: Thu, 25 May 2017 11:43:18 -0700 Message-ID: <20170525184327.23570-11-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170525184327.23570-1-bart.vanassche@sandisk.com> References: <20170525184327.23570-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsXCddJ5ke4VVfVIg0+XLSxW3+1ns1jwZi+b xcrVR5ks9t7Stjg0uZnJ4vC9qywObB4Tm9+xe1w+W+qx+2YDm8f7fVfZPNZvucri8XmTXABb FJdNSmpOZllqkb5dAldG44yV7AX7RCo6mgIaGPsFuxg5OSQETCQW7bvP3sXIxSEksJRJYvuz PiYIZxujxIGj81hhqv4sfMIMkdjMKNE66RYzSIJNwEji2/uZLCC2iICCRM/vlWwgRcwCVxgl 1l7+zgaSEBbwl+jaspURxGYRUJVYtucDO4jNK+AgcW/OThaIDfISZ7fsBBvKCRT/MvUiUC8H 0DZ7iRM3HEFmSgjMY5VY3LSSEaJXUOLkzCdgvcwCEhIHX7wA6xUSUJc4uWQ+0wRGoVlIymYh KVvAyLSKUSw3M6c4Nz21wNBErzgxLyWzOFsvOT93EyMk/At3ML6+7X2IUYCDUYmHl+OhWqQQ a2JZcWXuIUYJDmYlEV5lRfVIId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rxZslMjhATSE0tSs1NT C1KLYLJMHJxSDYwzNgQzr9j8+ty3a6pGWSIJVmvUJRbs9tGK2NHhdHab2/SSCc6sS7I//5fz cIo4kLZg7f1a9vhvTzSilp19u7w77cKMSXoOetOzNoken8++63Khn8mueYnyT2bneXCWsrde PBGku29pofyH20aHjp2SMq/Y6Ok39cble1853YL2vjYqzWa/qdKgxFKckWioxVxUnAgAzqM9 cHsCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrOJMWRmVeSWpSXmKPExsXCtZEjRfe8qnqkwYl/Vhar7/azWRz82cZo seDNXjaLlauPMlnsvaVtcWhyM5PF4XtXWRzYPSY2v2P3uHy21GP3zQY2j/f7rrJ5TFtznslj /ZarLB6fN8kFsEdx2aSk5mSWpRbp2yVwZTTOWMlesE+koqMpoIGxX7CLkZNDQsBE4s/CJ8xd jFwcQgIbGSWeTf7MDpJgEzCS+PZ+JguILSKgINHzeyUbSBGzwA1GiTtTprKBJIQF/CW6tmxl BLFZBFQllu35ANbMK+Ag8WXBC2aIDfISZ7fsBLM5QeJTLwL1cgBts5c4ccNxAiP3AkaGVYxi uZk5xbnpmQWGhnrFiXkpmcXZesn5uZsYwUHDGbmD8elE80OMTBycUg2MB/SZn315lCRg8O30 G6m5U9KsHiyI5Dg49WNm4I1vq99Z2NUtEmiqdPQMMNEXW2+hVl7k8WFBetIVL3kDZsd5LgGq 1T9/Hgl9ptP1688dRw3pKA3lB5X65xiuxi7aJepkK/4perN8YUF1hbUu50wR/SyZQ6HVu7sZ r92czKow2Wtyi2WuRZESS3FGoqEWc1FxIgDMkTimygEAAA== MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39400400002)(39860400002)(39850400002)(39450400003)(39840400002)(39410400002)(2980300002)(438002)(199003)(189002)(9170700003)(189998001)(48376002)(86362001)(50986999)(76176999)(110136004)(50466002)(305945005)(5660300001)(38730400002)(53936002)(2906002)(6916009)(2950100002)(478600001)(6666003)(356003)(72206003)(36756003)(5003940100001)(4326008)(33646002)(8936002)(106466001)(54906002)(8676002)(47776003)(81166006)(1076002)(50226002)(77096006); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR04MB2314; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT019; 1:SZt7acQYllGEGXPxr1GuxpcJkdxFZnP+BuWOHoj+xAlHjdH/+JIKBz2KtP+uzx0IxIoBVsXMneEPYeLScDw5hqk9PQIOh2MziPEqpTxnwfTjz9QGMc/PMA8oJwIbfJqrDfpjlcWDqr+4eJ/EYCU7L8STujzCAoEtJCbJFbDqX05My3cK4JYBhZJU+E1CZXYLDZbGbY7T1K2mbraCQsq1MIP82ww0eA0hUPEugUylkFNTs9kmTosa03umma6bSeFqyiRRe4loPx3MSNmuIWK35lsstKB/exn90Asv3YnIWExRVUXPihFiq93QSbnZD+V5t1CA2+NrkVGS8IbT9ySvNJUV/WHgSyhWWujcE86rAzB0PY/q5/fZzj2fQIoDkHbdid1f2Zc9EOkPrrDVpgZLoJQxKTJn//Px6ooVMPKBHIHjzZiYM4xNDFCdtuViiNgp7FQAZEPgTwUkNjsyRuf8XZDtY7S7PEmgqZyiDD3Lx0AjdcQ2J1XVX3NFbZw3zokcjqHT1Kzmn5Zde+9oGkuxanxrafEmuZ6nkh+GfOk8rFw= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR04MB2314: X-MS-Office365-Filtering-Correlation-Id: 149fcb1f-7510-4256-1b5e-08d4a39df306 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR04MB2314; X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2314; 3:sXrbcJe58Ro7M2nbaf6zN4RplORCLrfiSldg3oNnXMCIPEWkmzbJoV20qvhHRIAWHubs8EEIJuonyLXasDPgNWI/VS/9gxPFbJpcT3zzzHH7aOxfVOl9p2JyvBsQ4so+3MwnlpxTnjpyyiJvGI4DxYHJvhWGnc65rsM3k/81ArYedRO2tJGku4nKXN5BFSSBIDYqupFFVdWAfl9Py035p6M0UFS9ByvWmznhPUSBHD95Un/DfgS7GcBxXBDtz4Gkz7kSiR657oDi7kmWuFetOehsPv9KCRpYtIJtTmBJwRnkX8eCDUlLv00MkSbvsOdDxQ+C9AxiwHj8U1FNCVLla01cj0+dRzIGTJqr2zuapswgpnkOofhVBmcqMg92e0BK/4I4Fv/Vzkq+RJIDfXFVKYskiEcoh8D4WtmljNbjYTrCQJBfRL9Lq1u229Pg+fQ1qP0dEeczsvi//kBAln+VTrpvWNGdBgCMFUFyZv9zaLH1AS2HLOq2oBZW5UvfmvNl X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2314; 25:ugtn4Ju3SfrvPs6tbl7U8OtMnmpjmvkwQPn06K2RrNXV6wFSA8XnzL+Fd+RF57oKMeAxFKJx7DbvzHHoCLouSH3CqKd/DZF4po/XWvSInvyBgxMj0OqLz8RuD1gfa+rzoTVovBSdQdTHEgEZel/0H4xQeZ1vE1tp2CsAl/GZzkZfXvsyOXIzlsUCqNL6GKCRseDVmxRFYMNorsMffO9s5yTa+407estCOmEU1ExCtlG7Gv0huv8C1awW9R8w85GNfxgBqLa5H38ymI2oKq02gF2FIFybzQFraNayVvZCMKwIB5HIRQrKYDoYAytpCcEXdok1Zd4HJlvPPHB9mfT4WAPddJDrZdtbXP7/90tKG9GA0bM04xffVaitsFb1PV2Duv0Z99al3Zh8UXi+y28SMhmqQBKX2++8EuTtTVLj0mLrBgy4nvxil7OF1gxKQyDjKhweLFyYppzyCckWN+CmktaPF4sMx5Uh6otOsEa3TQk=; 31:2pr4tlAY6zgrMoftOeABY/0vtFNm1bJDjvOEjv6It/5a5K+oPxe2lFM0fB1VIM1YzvGNEO53eE8JuIhVyTZNuD/Ti1o+DJzQVEwTe+DPkciXzfhkyiB6L6z7CDn58QqdrkdpWWAebXeU6kwEHA4HtSKgQpynS9uG8lvfZ0GteoeNBWgHbfVz9Sfg7AwD0mDwjLNYxR6FPtGwO16qh0TgqgssOsxegJjoWqYXl6JBZTzimtK3C0G0pRr4+g3Tb3Aof1ByL8XGYs10uyGee1nIOw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2314; 20:GZedpKHwPptpWIUuRhRexaQ5smLk3kldtFoOma8nHoqlyOqn10dm3khT0Sq1dVcN1C6ll91TCIoIxhHBCTkbbaBjAQ6WWRP0AjEHYf1QyfRsebuh1gcJK/VzSkDjxm5f4qgYoKSv3XZQeWXnkIWU8wUxlKRuDMroVgsbJvaQPUix+y5OzcY1O+xjO1L1l5Gk+XFcoHOdkAvmxN/MCSizUq33aAAT5oldKtZJZVDXn3Bos/TWlJX27RC45lQKJPxF4p9MCDLBaC0OJZTHBjzZUv0y5MxwGYboCNBxxdaHn3Mll2760rHRMQoEI/zdtP2zSrVX0z/8vuzp4snUbbbB6/pyJ2h9URvkJdf9e8D0DkdQN73711vHIhzVg4Rtla/7hgMvhjyXWo7kSUp+54SNsfpV7T4eGEcyZtKLPa22wMv1CWAvMGf20+WxkisJPOlMbG5c2Lwrzhd/U5QJQu4gEpx2myiLtHevufdYRbHluIG/2urJO6Gnc49yBJwtm1em 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)(8121501046)(13016025)(5005006)(13018025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123560025)(20161123558100)(6072148); SRVR:CY1PR04MB2314; BCL:0; PCL:0; RULEID:; SRVR:CY1PR04MB2314; X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2314; 4:qTvlea8CW0z72HzoyRPfVROWxYDlsUPbphMaKSyBuaiw4kqCmDsZARPcuSUTkKr/9EpqN4P6/ouHepDoxOfPql6LNIRVwZ7SL57WDo4gbQ40o+c9X80mcHmRgCvmQ8X6wb4MdSaAATbl5+V22xkAkn+Mg7LaLmwIlQtUJgM4QXFm0k8H3TV8j7o5MIMjKnqBLQgvFA6T4imPPA/vJDJz3rAVOWrqylS7WY5dYuW0hU5S0WTC0UDS82Pnup1Fii6B7EZBQ83+Kw4JMEX9Ynu+obSOxqpzOv7GliUs2LSBMNMVZ5vdkHeWhUumCHpo2Sx+Ev4UFugtoDKVtVdL85doOJ/mZ6H7URN+PHU85TmEAf4H+Oh5LgMdSuHCzawtTp856Vw/O5ygKTiRTuij9NRpBwop11DfIS3W+fD2ySP/qX1IEei7rZgh8k1FNaYk8BqFB2b1nw74cA9jw6Ghq6L19L/0uO2znftc0Ogq6/569Bnw4OiAF/q8SaqhLTCQ8Yw9v1H+dbJnjcWQw7hHzW1pvkYSJVmxYOXztLyyEhO/FgCGk5giwDjUts+JPvjsxjKGCXhxz1IJD0FqMrJKwluzMuCeWUBTdLyMe5ioiwOLTnynbD4hy6Ai75Wreg9FFIMW8Qr9szODFhYlZyPaQ2uSLJSzvw+v9SgdSYNzpY+I3q6cj0w8jcJ3o9DL7Ib2ra/0bphp7xZUVxpashm8VnVSJ1NhCdTspYUilakv7ZKW/jcydCrq+o++PpRpkJtvbYMohkqVTXjNAd0iLPJDr1gGSW1imJ3GjhWOmM+RswRVosvVrVOQ1R70I5ROmBmPso2EcVAvCrVb0cyiYd35PZ0Fg/EqtmC8mxYzhEcHUmiLQDu3T4g+RIxHbak2H9dAWyx4x9mDtzF1+qosXNA+RThfrCZ/DVnxCJqBFtubwynUqH c= X-Forefront-PRVS: 0318501FAE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR04MB2314; 23:NJ423FnQVd1W+Ld78PUnF9fYpac+nyjvl90MNdPSW?= =?us-ascii?Q?wkIs/V+UcaGMOBII/yxKtq+xaX/j6CJqzZx3HsinQNaH/a5I3rSloYxsTpzP?= =?us-ascii?Q?OrxBgGC80S3ohMKkgzaiksjk9mbVUNsgKZ2WLAxdZaJUqEc3lKRJlUUrUkIj?= =?us-ascii?Q?5z6fkpOj7XwQ+KHdfG4UURmhPC1DsViOCZlm0Z/2ZdvgxQkeMLDCG7jRvVjT?= =?us-ascii?Q?h7AlIgrWPIQzDNuu3JUTKEnz3O9FMFfCvuGxfsawnPDVTAEEj9QVa5KkF7Lk?= =?us-ascii?Q?VTdq7C+qcQlI9oiSW8lOI1hSCAZ9ilsCGPK2faZ4Qca+x+PoQeQX8fckocQe?= =?us-ascii?Q?lk0U/ggj1IyjNJlcQvfMEs+n4d89qwjUUiJ6qkx28Gm4WNwf6UXU4aIrZBp6?= =?us-ascii?Q?bcb867/rMZ+IjAXCiJ732nbwp+S0hq2bGV76S/3LPM8Fvt4ABE0fpgatyl9v?= =?us-ascii?Q?p1tucr0thKV2B+Bsy/J3p/axyzI978TCngL64tSfST4EeLREEGTx3d7Ajsvv?= =?us-ascii?Q?dZ7vdX4yjIxk4gnznk7/K0po3rJK+4STl0RTozpqIce+Soohq4n02nJi2eYQ?= =?us-ascii?Q?AlDisFGplmArREwK6ErO52u+JhOjaAl92yY+JWYRWlm+ofzASo3hHjaKtNvH?= =?us-ascii?Q?snw7RctvOSO8GokP4Cdbtzx/DN8cGUc+Lu7lB3qMQUJ571cnTXo1shKZMzyr?= =?us-ascii?Q?uWt0uraFarp7hTgILU3AblFgyhvrnvbmRv/ehoxbKr9904teg12Y5VmfckK3?= =?us-ascii?Q?cPvmy7zXMU8T3oo4O7hUQt5ngHpOFX/E4a6s0HRIC5u2FD0FMdeiIdIuU6xJ?= =?us-ascii?Q?WXLlxXkdsTzahKuOT7m4EdDOD/yMrgmFf9xTnwa7LVs/lI5qrOZcPfMMS+9s?= =?us-ascii?Q?LUwwURg1FlLITdgj4CRp9T3Ll4TM7VNXq1zS0geiekIzGKVcuVz5ewXyrNZI?= =?us-ascii?Q?1R4oNuwdlBJuRv573mjKk4ozcoud7coNisp6Dvhf0kScwb8wjCqR9PRgjPTJ?= =?us-ascii?Q?XbrRPsjSp5osd4+6ptoAZX18r38zsMPhshMYC/bQn+ngmU2XJhRfOFJ0RhfA?= =?us-ascii?Q?JEwYT7RZW6dxY0Bprk9OZUTQKJsCNLHOmFKR6l6ttIMzcHRDA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2314; 6:cm8/UfQ+oIsVtiF8k9IEVRRsEapwEREe/fIn8DVWOuHuRjASpoDcoDCI95SZd1ZDbOXGf7YbOtgzmJ87sztcuemFYs/0WwnTOywsPAsSXYu3gBA9ymJD2QYEBmj59qKClekwAgdPWwi4ugoacSEyTqARwSxdnaHx8nl8fgvyIh8wEwGMKpHf2b7kvsCekjo83FZpXV6K49MnO8v8E8JHR2WJ+b8SAXHxZsenjZ84BNqhgUGpcj9DIGvwJ7fehyqiGTpQKcnEVzd5B90GBkXR6jQfooi3zGaGhdtGND/+TRRvVs495wsB1iOPwVCaED8k8WZ4deJMrwYBQw61BlPF92u+UaTXKpsxeQbeC+QfY1JmLscP3om9vR0mWEoEr2gmbS2ATt1XnSgYDCAKf4xqMqkmpAcIlp5YTr2FokZBUxAmII0DZpzbvhURgfvH4C5WPt8fxL/K7sT/7yEpSIZBEzWE90Ow9F6aRyxAM8FhRIiMuj1QZkRlPbvMGH23TkaaHFRq0/j9lrzS0pfoUOjahlGeE9lz6JyUJ/hotCdDGOE=; 5:bq86WuK7k73rZghPXNOHY1KFlcfxwu9DagkI/tr0WExLgon9d5717jS/0iqq/USeWrWQfSZPYBvvm2FI3unG3gNJUKeiY6Ny0oMMxjvLrAW4wLyWZ1yZCKAQWUQPFSdylt5mPLlUDzedqHauMBH/jegPgvwSu8fgQygIJsdHSHU=; 24:tjNIqsW0qm0jbMm0c4QraSoBBGzQu9jKYs5S4ZQtMaFZlryAGgnRHHjcuYjYW31I1ehNWDsaGHEspPN4r/XFl0Z2LB5bm4KVCl/RvOZQcYo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR04MB2314; 7:VnipJThFBksTu6JBNZ92kRtAo/kqB9KzrcH7ibWE7S6fRXWeoQpEEVd9Kc9UYVgDhwTfxC/vfH7Si5yUkAykSxlhK3RFSRI0aejgcX3eQwODpUD8FL4as/zTgHA0lYywa6x2VthSytpebEw6JTTPCSnpItMFzcvoiqQ+7OW/zgdst+rppMIH75Vfhgi+hoeGHyW8R8UCCrL2o1wp464h+dCbjhAKOuMMIwUf+xn1UGjFAKD5B0QE/q37euS6dwrLgmOEZWXqVV5dSJOQZ/ZmYOh357KTLjYHf1ze7DGLedCWTIA+/0+6ctV8eSZQRfRuy3Cf3TwBnbIZdZIKQjv04w==; 20:wHF2aDPw7tbY8U5upjLCK3Dqjit+geNMSXIhNpWMHw6UQ9s1otRCtfElwTJ24h4kdVJSzFb+k3XRf1kZWbx5vnpHkiMEta7V7TGNFkItPdeIyXqDAYz+FyGPABNdbIXHSpextZTNiI9Q2YIAKxcKa1+AHZepqwEBIbbhXfeatzc= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 18:43:34.3070 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR04MB2314 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 This patch does not change any functionality but makes the next patch easier to read. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Omar Sandoval Cc: Ming Lei Reviewed-by: Christoph Hellwig --- block/blk-mq.c | 14 +++++++------- include/linux/blk-mq.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index a1620b36b95c..bc96e6007e53 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -172,7 +172,7 @@ void blk_mq_quiesce_queue(struct request_queue *q) queue_for_each_hw_ctx(q, hctx, i) { if (hctx->flags & BLK_MQ_F_BLOCKING) - synchronize_srcu(&hctx->queue_rq_srcu); + synchronize_srcu(hctx->queue_rq_srcu); else rcu = true; } @@ -1122,9 +1122,9 @@ static void __blk_mq_run_hw_queue(struct blk_mq_hw_ctx *hctx) } else { might_sleep(); - srcu_idx = srcu_read_lock(&hctx->queue_rq_srcu); + srcu_idx = srcu_read_lock(hctx->queue_rq_srcu); blk_mq_sched_dispatch_requests(hctx); - srcu_read_unlock(&hctx->queue_rq_srcu, srcu_idx); + srcu_read_unlock(hctx->queue_rq_srcu, srcu_idx); } } @@ -1537,9 +1537,9 @@ static void blk_mq_try_issue_directly(struct blk_mq_hw_ctx *hctx, might_sleep(); - srcu_idx = srcu_read_lock(&hctx->queue_rq_srcu); + srcu_idx = srcu_read_lock(hctx->queue_rq_srcu); __blk_mq_try_issue_directly(rq, cookie, true); - srcu_read_unlock(&hctx->queue_rq_srcu, srcu_idx); + srcu_read_unlock(hctx->queue_rq_srcu, srcu_idx); } } @@ -1879,7 +1879,7 @@ static void blk_mq_exit_hctx(struct request_queue *q, set->ops->exit_hctx(hctx, hctx_idx); if (hctx->flags & BLK_MQ_F_BLOCKING) - cleanup_srcu_struct(&hctx->queue_rq_srcu); + cleanup_srcu_struct(hctx->queue_rq_srcu); blk_mq_remove_cpuhp(hctx); blk_free_flush_queue(hctx->fq); @@ -1952,7 +1952,7 @@ static int blk_mq_init_hctx(struct request_queue *q, goto free_fq; if (hctx->flags & BLK_MQ_F_BLOCKING) - init_srcu_struct(&hctx->queue_rq_srcu); + init_srcu_struct(hctx->queue_rq_srcu); blk_mq_debugfs_register_hctx(q, hctx); diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index c47aa248c640..c63d1d98404a 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -39,7 +39,7 @@ struct blk_mq_hw_ctx { struct blk_mq_tags *tags; struct blk_mq_tags *sched_tags; - struct srcu_struct queue_rq_srcu; + struct srcu_struct queue_rq_srcu[1]; unsigned long queued; unsigned long run;