From patchwork Thu Jun 8 17:33:45 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: 9776169 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 F35F4601C3 for ; Thu, 8 Jun 2017 17:34:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB0782521E for ; Thu, 8 Jun 2017 17:34:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF39527031; Thu, 8 Jun 2017 17:34:42 +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 04C872521E for ; Thu, 8 Jun 2017 17:34:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751556AbdFHRej (ORCPT ); Thu, 8 Jun 2017 13:34:39 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:19082 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751538AbdFHRef (ORCPT ); Thu, 8 Jun 2017 13:34:35 -0400 X-IronPort-AV: E=Sophos;i="5.39,315,1493654400"; d="scan'208";a="126519572" Received: from mail-co1nam03lp0023.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.23]) by ob1.hgst.iphmx.com with ESMTP; 09 Jun 2017 01:34: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=Os84z7WLuDT/XEdmk6LcT7dlzxKJ2KBE7tcqLbBs1og=; b=hQqeqlaRGXCEVm8r/oc33/wSi88vhjdVSlh4z4j9BYMEEzRUFCVwsYTAi6FsTErE0RWEEIlEezqWMxzYxSPutQYEJnCBPed24BQo06rjQcEJZ3TS9b5Ll9oyWORqmR52PhhoobK3QYkZ+CU+tCa7v+ta0rJe9KLQz/RSrcU3QRg= Received: from CY1PR04CA0010.namprd04.prod.outlook.com (10.166.187.20) by BN3PR0401MB1460.namprd04.prod.outlook.com (10.161.210.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Thu, 8 Jun 2017 17:34:02 +0000 Received: from BN3NAM04FT052.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::208) by CY1PR04CA0010.outlook.office365.com (2a01:111:e400:c5a5::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Thu, 8 Jun 2017 17:34:01 +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 BN3NAM04FT052.mail.protection.outlook.com (10.152.92.241) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1143.11 via Frontend Transport; Thu, 8 Jun 2017 17:34:01 +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 8C.59.51736.88A89395; Thu, 8 Jun 2017 10:34:00 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Thu, 8 Jun 2017 10:33:58 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-02-59398a88d765 Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 29.E7.18148.68A89395; Thu, 8 Jun 2017 10:33:58 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH v3 02/12] block: Make request operation type argument declarations consistent Date: Thu, 8 Jun 2017 10:33:45 -0700 Message-ID: <20170608173355.25898-3-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170608173355.25898-1-bart.vanassche@sandisk.com> References: <20170608173355.25898-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrBLMWRmVeSWpSXmKPExsXCddJ5kW5Hl2WkwYxPYhar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvj6PL4gk7tivabPxgbGCeqdDFyckgImEisPXOHBcQWEljKJHH8vUkX IxeQvZ1RYvatg+wwRe+v/mKBSCwHSuy7wgqSYBMwkvj2fiZYt4iAgkTP75VsIEXMAlcYJdZe /s4GkhAWiJU4u2ErE4jNIqAi8bZxA1icV8Beom33SiaIDfISZ7fsZAaxOQUcJK7tXMIGcZK9 xN6G72BDJQTmsUpMef6KGaJZUOLkzCdg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-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39450400003)(39410400002)(39400400002)(39850400002)(2980300002)(438002)(199003)(189002)(9170700003)(575784001)(72206003)(2950100002)(54906002)(6916009)(5660300001)(189998001)(1076002)(478600001)(77096006)(38730400002)(5003940100001)(36756003)(2906002)(4326008)(110136004)(305945005)(53936002)(76176999)(50986999)(86362001)(48376002)(81166006)(8936002)(50226002)(356003)(8676002)(47776003)(6666003)(33646002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0401MB1460; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT052; 1:uBTjkfIuap6HO9g84qSTBaGippbsQBu5AbfjFanmbz9ktMUeliBXuQOe6wTybjcNrnk3Nn/y1NY/6xqq3g2lwwWsJdz7p+Wc7J/szPW77mqPAwI4Xd0z78xFyQF3+n9RmampzYBiO09ImFyNjY6GSfYy2JTFiU3c1X5xG8pNQY0XZLebOsDcM7uRwRq5CDtzTIFVabUHwA5au5dvfUgrn8GcM0R0Br4uPgOih3WYQAVl+cobJ8LvJJ7ZE2FnZNVYOlbwHoyTbM3EFUccHyR6PEzdSHli/uO8HVI86yLLuyyw/1eV3IVxGxzmEhzGnHB7CaFa+r1PUz7jIrKefIRYVk/7xxA3dVrz2ujq48NK2ZCa9mfSdQ91bXHoocyMK9NU60hWwCq3hNFSBYOuh7KZOw/SqI8r2qJqTbeqiGNfGUNyEJBUY+CuY6CIaJB6VNLhoobr9ZgQyb0JUFESRkJMj/hffsREmabc9ZVszuLT/CmOsUoTCoFhVUw1W6az/Dw5qovnano9y3ctFHGHCyHVbqdX+CEZ/nvTWmxTsW24fAc0DMR9Sfg28ljNbUUcXJld X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR0401MB1460: X-MS-Office365-Filtering-Correlation-Id: 431e3843-8dbd-4d08-3e61-08d4ae948da4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN3PR0401MB1460; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1460; 3:tX8/oBsarvZ1R/QQYWarFlOG7e5t+JFENwR003uZayvHHN5CxnS+E6+ADvapshvTkUxo3U+m1weU79cgNHrlgwv6ARxxTxDX6FTNU6qSLZ8jx108YqYjwVBavvrkvi/lLy0UpuOf3TuSSsgeT8X4nHMmJiYGx2q3xeg9LaOf9y65f83QU27Ybx3uc8qN7O+/Rn/P1/Trdyfnw3ZP8moIYhgxbUc/Y1w9bkKlF1Cf/2xZUXfosz1Tu9eQPBGdgrXt3sAvmSEMjTroQAPRp8CY51IuVvlpOBGkJVW7TjYMxUhJPQlfJ2R+Px1qZP+EvepYOMJekHj2WqW6c2bNlDIcSNVGKiWVQCJDloAJoFQ6GcqU5NCZKNMz/qHorUIY1rODOhRokRBvbCs7YleOfD2ABptPXonnJvl9XupBPNg1bKPXPH5v5X2YCs0B5Jx8FSjht+XA3+/UbwLv2LUOFw/miDT4c4r3Bw4+nIqdnzjOdl3XcnenSIX67QaWXBuciaKJ X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1460; 25:yVdOyf9LWM2ohC5KveJLL3qHkn1p+GWOuZTXY3Qp4K5I1bnHbhCURRL5HAXEhRG2FrMMganECw9Fgz0Wko9VIlAZDJQt/xS5KRcsGp21e7uKxp/c6PXm3sZU0iEM8O+lqK3ln6pkt2d0xWdFPz857+SkdepMi/JbyYQR0u1CHyeU2buGHBDFJKtruuED7NHawUGeBO+UTbws4Emz6X4LSvWdsngJG/CFfgBQQWR4NPkwKLo4WonncBYCNwxi1WU+N/yMhK9bPf9mx0TnoYlbsuyZEvxsOoMgI5RVhnMjYOURENFMDlySQmez0giFdVm3rfc1c42u4WWO6bkqDpKDfxuWvDDG8EOuo0xSJqECVlEzoNaB8WSpvdsOJzuCTpI/Fk/BZsNNnOK3eIyP4G+m8SIY8hNrR8+Dcq6qdi87otYztXmmo3h6qgwoBvTuY+8N8Iyud0PJ2rDnP3eXoj9Msh+VzDzinO+LwJjPS5gwm8Q=; 31:ofx2izVnqVaxc1J2y+K+bbE8zucinaOHYbPzWXdiy208QQuHrJzuIea00ZTfn1MSlpgl60pZzMUzWzwIIM5ztC9Draj5bjlKDR1aBQCOc8WUH3EkK0TPg4Y57duwdOzJlZloD6rpGESLWzZxCHSTfrr4vKwKVadTozNNvGS5ppSeQESv5DIVo007urqi8Twv8DIaPZ1iWEpqkcM7U5E1yub6rlqN2zgNym5M2cUhEapFZ5UXVXZE+JNp6faYdkSSaHRiFvu7L3JVQonzThgtLw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1460; 20:mRWbq1xjIh243NFzGCzsxcbCJI7v5FLhr9gdeIQHUvWhpaFxQE87xTbQwMeKM+zmirCistrYGbMOfaGp1UoHjyqP+mxa0oRMh/5PB7bxslqo1/HfOat43FHjBeXyKRNv2gJt9xeRyCuRSbCbmCLfcMN9tmW6bbTOIKRSLSPMRGdlZbPAcxZatSyhsV6gflnS0XDZiEzV9o0AyjcuMjdfAYNRQOGX3TSUjFLyw8FEmQ4sSC4qxaVdZiUkPAxRz8b+Md0c3ItvFRKg+vg0BRaitKybZ5VMdLmzLkjIpGVp+9mED2KJAU22SKPLotIGxllHoACFIVc5fJI7xcahW2vQ74W2g/S+a/YIDt3XxQJOnK/EDyOgYxkPuQb9+ZXo/z8mkmU0m2o1Fj90uZgkThyXqXRiV9/GddkhtaUJTy8BDKfk3bhioLa0ayvZDJDjmzcnp4y2eGhN0jCbQxnjI8ClU5HZgX3W2drm5lUkxWiHW3b+X9hJheMdfB41uEMpobh1 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(5005006)(13016025)(8121501046)(93006095)(93004095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0401MB1460; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0401MB1460; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0401MB1460; 4:YodemnuEmmq2RXpJQP6uby3X2mc8+6iaaUIaTTlQ?= =?us-ascii?Q?2NKKNGYBdxGAAxHzc6lmpeGb/L5RE25Lcf5GsYfVnIKcFgCWqlJqh25RA3KR?= =?us-ascii?Q?+Be7ejm3iLzjkqebTqYCL0eHrYH3rO8jZsQ3zE/4J62DR9m9y5tLXwTjN3EL?= =?us-ascii?Q?rnyH8ERK9u8Tvg477aHXfbT3cGVBFpO7/8Wi/W3Lv4UM6Nm9tpo+vVM47OyV?= =?us-ascii?Q?bGVjO6ED7pcZYx9GkzZDI5DajzVvXFbd8aCfCuGDZ83n9n8mx/0kIRNc25Ex?= =?us-ascii?Q?eAaAsf4hcWu1o99biXO/4OH6Rq2P65XHdQ8Mas9ZrPzsMLEvWVDVDV043PCR?= =?us-ascii?Q?CfjxINDMevFKdS7iauMooaejZXaI+Ft2Izkbmg0HX7cMlk6+bJUtn0yvZFdO?= =?us-ascii?Q?TEmhP7PxScVSkjUGxpsnrYT7XsvUydQz4qfuZ/Q11ggRwsd3SYNdZVjm6CFu?= =?us-ascii?Q?Ml57slqmcg2vU8eu2ksG99ZFFGsit18AY1D9yEVSyBfAW1Ay7ATaaiGudZ+x?= =?us-ascii?Q?oaUJmYDkuAH5NhHrWT08fVhc83gIPDuoF6r88+id15GLkbGCd9FxANiO/4FS?= =?us-ascii?Q?fvprZor2A+m/1VJSTO5p13YlA7vqYal67vOKfdRIliPacqvHmkWoyG1WM2d4?= =?us-ascii?Q?7Pmuqxky/Bm2L+kax7ZBYQp9h3Xxul+zR324DCF/z4X6htE57GBeysayPTCq?= =?us-ascii?Q?RRq8WjirKTeaq0QL2JCC3+IhHE1x9hY0pRpfIWKw3521l4BHAZYYwe1tpFHg?= =?us-ascii?Q?jsG/u35OGU/lMmA5dOXVOFBF9Vnv2dF6BGDKRD2ruWPRYKg14ZGckFwxwJYX?= =?us-ascii?Q?UaNiCBnsWy7m8sLSukX2kPIkNKINLAVYupIxafdiqmI2YdFqt5HI9dvzIga8?= =?us-ascii?Q?t1z59ITUWQbxR+gxQlkx/LIPmL/FlgM9ri4Gpi/BzFk0+sYaSdJfdDq6g8mM?= =?us-ascii?Q?KurnhJerz3s5CrvQFYf2vY2QxrrkRDkwCU1cL63k7sOidiffti55CHrsQxp5?= =?us-ascii?Q?QYdKAFELRoCNIReOHJtf5u+0JO6mI7WWjT5ZuF8KVraIa00DUYJTZAuAhwDU?= =?us-ascii?Q?rlOdH6zt3fRHEbYIWssbPrxYAw5VotPB2BOHW+BfQEKt5IsNwbV4yKQIiSep?= =?us-ascii?Q?qXlZTIz+2Dpv3vTlz4WvKg006imDNITV84d7lgU112Prxa1ADoN4LuptvKsg?= =?us-ascii?Q?lCDzJ3ZIWoV5fcmeN1kSggxD3sr5bDQxPOuWN1HZTa3bObrfO6ebC9Opp9mi?= =?us-ascii?Q?in/Q1cvBUwbWSVZXN3w6AKCyqitwQk5B6S16YQa+m9gj/2jZLsyLPb+q0W+S?= =?us-ascii?Q?cg=3D=3D?= X-Forefront-PRVS: 0332AACBC3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0401MB1460; 23:rzNBi4kNU0ebkqttsJ5Cjxnwyo9579flc8TXjJ5?= =?us-ascii?Q?4TiS1ox+vOpYeTXubK6U4fK1X9NJEBByceZLD2z67LvEIlu/OGLBa1DyaaKA?= =?us-ascii?Q?20bow3GA/70DERm+OX69wm9EezgdPZCpk0K9IzOExGJSX7AsjJoypCyU2mRv?= =?us-ascii?Q?FMXgNrJgab7CSx+ZCNTsvr5alWqbevTszFMbTYSb968MMppOvfBE3GDVqNi2?= =?us-ascii?Q?tiOk3HtjAlwIOAgvfc5lHFOrqixjNLCKzQKux32SJbWhBs9k+SRG9tkeijsg?= =?us-ascii?Q?EL0C5HLSNOHZlz8T200jMdEjgz3Ff53oCIwKbZtn0iEYZmAfd/i2aSh11onV?= =?us-ascii?Q?4AnNzEIQWMBfAyChsbwSU00M7DM10OLryzlErRoFK+L2JS6Kp/U9F1bgZUFa?= =?us-ascii?Q?ZiegQFFp5KVIBOf/GTUpHyUEWeykl23P7Vo8hAJ506EwCxWx4d49/7Eywxi/?= =?us-ascii?Q?55FX45nlq3VFQAxEFYzWW/VpJcXeXORBTnzU8iYmi7FBkmkCq209VJSFAHuR?= =?us-ascii?Q?0rcxfh+DBMnA6I5TJ8HtwCbgtuVQVwLIaRYbrrgguUeLf2fq+Cp6GdUY5MfS?= =?us-ascii?Q?0cnkJgxddX9bJ4rXQpStHv7kbYXE3oeIKzkImznppCXBMjZiC197f0BWo4Nm?= =?us-ascii?Q?3xATHAk+2AqPdk+sKa618XT9WKNk9g4tmy0MQKia6TDiUfSEL2IfnPGO7+mp?= =?us-ascii?Q?5WhEmFktFpOPyFx3MUEbPQiGrljz642WVIoHqvSvIA+Oobz7KRmfejF+JaSo?= =?us-ascii?Q?6+RwGGKzRE+armi7irJDNebh79xrtAlXHaTuOucRndAfC/sOwT6+VWGOfE8n?= =?us-ascii?Q?b8wFlQAhF1AI8Wo5nuNDrqcooWZ1OzxCK3O9DfmqK/bOgX6lZg/3eMFNcJ5y?= =?us-ascii?Q?fcie5DVXZ3K73fO4KoWbRogEJl5p4IhgICKGvs2wZY/zZrj/98+eeD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JLLJBD+lJ6JL3y4GWxZvVAdsUfir+ZxkTB7Uez0RIsnKLuBmjTIY7jTha4o79NQ+3zZz1BtqXnwjNF5bSVLlsznokCA+Ex16xJcyq6o6OQiA1rJpxcl5oizdBH/y0eDXzEVW3Yj09OJlWxerX5qGT2sR6KiP5G/kIC1sLHkYJfwvsfdUZOVMJeG9+exZhTJ/Wt0P/lM4CdbKn7wNjdUbuMULVR4E26s7b; 24:kPbx4yuLlBhv+/muU7nQEB3xHtJlZE/AHRMtrM0Zd4Ou4A3pSFPxQga2lmleza2+lSfN/eK76ao9lpZe0ZznKmdBLBod/04C3GVeSAAhNOY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1460; 7:So89pNGipIpJemMdUo+unrYOet0twXQTEithvYwusXkfPZxIhMyFGZc4tEegkA5JgV1w21nRaDXK5ey6nHfMlWEIi1MeGibLZiz6UdvCDnyS+YPJ0dhv6MlKx3i/NmDJ0NdyAIfjVRUBw5M5ohaOBkzOEUwIOTTEZ/PUlBAwo3Sye8RAYOMFxAVyTZAA5OYuSdbn1QjIouYv63HIPrqMYzvDV4KoA5y+SFmN8VRL/OXGx4pvgYwyTlxKHU3LB/PjB90EpovMwbPF8gMsfRiq1tk3Q/y/dY8qdzFEyBI/B7AnTSmvPxNoPPpDR0nwydCTHe4kasmDEtbGtSkdHepE1Q==; 20:2tqxS5OcdLwVj2DDuW2grXDy1sNnnpGRK8ooQVbr/M7lPIlOrP+DNANGMeyBb2ogB9UxhjmBND5AwCeAq7r8dN6KPjGVbYS6ku5SZe7DC10No//N48eD+B8HfAa/MV6uHcw4EIQgSbEA45ZtwNctBkMOUDP1NEaIhTj0Vs1oJco= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 17:34:01.5045 (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: BN3PR0401MB1460 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 Instead of declaring the second argument of blk_*_get_request() as int and passing it to functions that expect an unsigned int, declare that second argument as unsigned int. Also because of consistency, rename that second argument from 'rw' into 'op'. This patch does not change any functionality. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Cc: Hannes Reinecke Cc: Omar Sandoval Cc: Ming Lei --- block/blk-core.c | 13 +++++++------ block/blk-mq.c | 10 +++++----- include/linux/blk-mq.h | 6 +++--- include/linux/blkdev.h | 3 ++- 4 files changed, 17 insertions(+), 15 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index a7421b772d0e..3bc431a77309 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1283,8 +1283,8 @@ static struct request *get_request(struct request_queue *q, unsigned int op, goto retry; } -static struct request *blk_old_get_request(struct request_queue *q, int rw, - gfp_t gfp_mask) +static struct request *blk_old_get_request(struct request_queue *q, + unsigned int op, gfp_t gfp_mask) { struct request *rq; @@ -1292,7 +1292,7 @@ static struct request *blk_old_get_request(struct request_queue *q, int rw, create_io_context(gfp_mask, q->node); spin_lock_irq(q->queue_lock); - rq = get_request(q, rw, NULL, gfp_mask); + rq = get_request(q, op, NULL, gfp_mask); if (IS_ERR(rq)) { spin_unlock_irq(q->queue_lock); return rq; @@ -1305,14 +1305,15 @@ static struct request *blk_old_get_request(struct request_queue *q, int rw, return rq; } -struct request *blk_get_request(struct request_queue *q, int rw, gfp_t gfp_mask) +struct request *blk_get_request(struct request_queue *q, unsigned int op, + gfp_t gfp_mask) { if (q->mq_ops) - return blk_mq_alloc_request(q, rw, + return blk_mq_alloc_request(q, op, (gfp_mask & __GFP_DIRECT_RECLAIM) ? 0 : BLK_MQ_REQ_NOWAIT); else - return blk_old_get_request(q, rw, gfp_mask); + return blk_old_get_request(q, op, gfp_mask); } EXPORT_SYMBOL(blk_get_request); diff --git a/block/blk-mq.c b/block/blk-mq.c index ef64a3ea4e83..8cd5261ca1ab 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -278,7 +278,7 @@ struct request *__blk_mq_alloc_request(struct blk_mq_alloc_data *data, } EXPORT_SYMBOL_GPL(__blk_mq_alloc_request); -struct request *blk_mq_alloc_request(struct request_queue *q, int rw, +struct request *blk_mq_alloc_request(struct request_queue *q, unsigned int op, unsigned int flags) { struct blk_mq_alloc_data alloc_data = { .flags = flags }; @@ -289,7 +289,7 @@ struct request *blk_mq_alloc_request(struct request_queue *q, int rw, if (ret) return ERR_PTR(ret); - rq = blk_mq_sched_get_request(q, NULL, rw, &alloc_data); + rq = blk_mq_sched_get_request(q, NULL, op, &alloc_data); blk_mq_put_ctx(alloc_data.ctx); blk_queue_exit(q); @@ -304,8 +304,8 @@ struct request *blk_mq_alloc_request(struct request_queue *q, int rw, } EXPORT_SYMBOL(blk_mq_alloc_request); -struct request *blk_mq_alloc_request_hctx(struct request_queue *q, int rw, - unsigned int flags, unsigned int hctx_idx) +struct request *blk_mq_alloc_request_hctx(struct request_queue *q, + unsigned int op, unsigned int flags, unsigned int hctx_idx) { struct blk_mq_alloc_data alloc_data = { .flags = flags }; struct request *rq; @@ -340,7 +340,7 @@ struct request *blk_mq_alloc_request_hctx(struct request_queue *q, int rw, cpu = cpumask_first(alloc_data.hctx->cpumask); alloc_data.ctx = __blk_mq_get_ctx(q, cpu); - rq = blk_mq_sched_get_request(q, NULL, rw, &alloc_data); + rq = blk_mq_sched_get_request(q, NULL, op, &alloc_data); blk_queue_exit(q); diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index c534ec64e214..a4759fd34e7e 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -205,10 +205,10 @@ enum { BLK_MQ_REQ_INTERNAL = (1 << 2), /* allocate internal/sched tag */ }; -struct request *blk_mq_alloc_request(struct request_queue *q, int rw, +struct request *blk_mq_alloc_request(struct request_queue *q, unsigned int op, unsigned int flags); -struct request *blk_mq_alloc_request_hctx(struct request_queue *q, int op, - unsigned int flags, unsigned int hctx_idx); +struct request *blk_mq_alloc_request_hctx(struct request_queue *q, + unsigned int op, unsigned int flags, unsigned int hctx_idx); struct request *blk_mq_tag_to_rq(struct blk_mq_tags *tags, unsigned int tag); enum { diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 019f18c65098..6c4235018b49 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -932,7 +932,8 @@ extern void blk_rq_init(struct request_queue *q, struct request *rq); extern void blk_init_request_from_bio(struct request *req, struct bio *bio); extern void blk_put_request(struct request *); extern void __blk_put_request(struct request_queue *, struct request *); -extern struct request *blk_get_request(struct request_queue *, int, gfp_t); +extern struct request *blk_get_request(struct request_queue *, unsigned int op, + gfp_t gfp_mask); extern void blk_requeue_request(struct request_queue *, struct request *); extern int blk_lld_busy(struct request_queue *q); extern int blk_rq_prep_clone(struct request *rq, struct request *rq_src,