From patchwork Tue Jun 20 18:15:39 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: 9800057 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 F256460328 for ; Tue, 20 Jun 2017 18:16:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 00225212BE for ; Tue, 20 Jun 2017 18:16:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E82652624A; Tue, 20 Jun 2017 18:16:07 +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 4A09C22AFC for ; Tue, 20 Jun 2017 18:16:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751739AbdFTSQG (ORCPT ); Tue, 20 Jun 2017 14:16:06 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:18832 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751030AbdFTSQC (ORCPT ); Tue, 20 Jun 2017 14:16:02 -0400 X-IronPort-AV: E=Sophos;i="5.39,364,1493654400"; d="scan'208";a="129578070" Received: from mail-sn1nam01lp0115.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.115]) by ob1.hgst.iphmx.com with ESMTP; 21 Jun 2017 02:16:01 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-wdc-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=uG4PQDGGoan37it7tJrRy1b3uxmvJ9y1KALY/CfSSGU=; b=aTnf8XCibPeB2Fwl4uJZFzGhc6Ry8YeJM6h0XTJv3HLpRBvw6wxhvUQwgIOqLElfUQMYJ9GC+K3J/l/MVnjJnOcbcjEcFPyH27bTCLZwLFg/cWcKmHwbNYoQmUIyxmPUun/Zzc7xMt3Ix6hAYppZNbEX2/8QlpghNHSdWlSCXnY= Received: from BLUPR0401CA0026.namprd04.prod.outlook.com (2a01:111:e400:525a::36) by CO1PR04MB555.namprd04.prod.outlook.com (2a01:111:e400:103e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14; Tue, 20 Jun 2017 18:15:59 +0000 Received: from CO1NAM04FT051.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::209) by BLUPR0401CA0026.outlook.office365.com (2a01:111:e400:525a::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Tue, 20 Jun 2017 18:15:58 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.21) smtp.mailfrom=wdc.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=none action=none header.from=wdc.com; Received-SPF: Fail (protection.outlook.com: domain of wdc.com does not designate 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 CO1NAM04FT051.mail.protection.outlook.com (10.152.90.255) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1178.14 via Frontend Transport; Tue, 20 Jun 2017 18:15:56 +0000 Received: from MILHUBIP03.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 E9.16.02805.B5669495; Tue, 20 Jun 2017 11:15:56 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 20 Jun 2017 11:15:13 -0700 X-AuditID: 0ac94369-9c18398000000af5-e0-5949665b892b Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id E0.5D.11415.85669495; Tue, 20 Jun 2017 11:15:52 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Bart Van Assche , Hannes Reinecke , Omar Sandoval , Ming Lei Subject: [PATCH v5 02/12] block: Make request operation type argument declarations consistent Date: Tue, 20 Jun 2017 11:15:39 -0700 Message-ID: <20170620181549.24903-3-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170620181549.24903-1-bart.vanassche@wdc.com> References: <20170620181549.24903-1-bart.vanassche@wdc.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5kW5MmmekweHHzBar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugStj8cc9zAUt2hVffz9nbmBsVOli5OSQEDCR2LF4JVMXIxeHkMBSJonL R68xQjg7GCXevupmh6t6+4cdIrGcUeL0/nNMIAk2AT2JU/P2gdkiAgoSPb9XsoEUMQs0MUm0 TPjBCJIQFoiV+HxqHnMXIwcHi4CqxM1HSSBhXgFriRsbtzNBLJCXmPaulxXE5hSwkXi/5DQL iC0EVPP1+32wmRIC61glZk1ZywrRLChxcuYTsCJmAQmJgy9eMEM0KEucX/uEbQKj0CwkZbOQ lC1gZFrFKJabmVOcm55aYGiqV5yYl5JZnK2XnJ+7iRESAZk7GO8+8T7EKMDBqMTDG6HsGSnE mlhWXJl7iFGCg1lJhFcuDijEm5JYWZValB9fVJqTWnyIUZqDRUmc95zM1AghgfTEktTs1NSC 1CKYLBMHp1QD46KJm/bvcNTykKlwOq02JXIG951qOcf0YmXBtHOl/Solml8aZ/oyf+r794bT sJrb4ecc5aqu4wrfvG64T+57u12R4aTr/E8Wr2SYZjvsapi+PFjreV98kEv4v3vPdM996PJq E11R2jFvRnDvhMdH4nwn71Ph4n1eYbuvU25jS9AS0zo7769TlViKMxINtZiLihMB3g4n5nwC AAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIJMWRmVeSWpSXmKPExsXCtZGTTTcizTPS4OE6bYvVd/vZLA7+bGO0 uPTnC6PFgjd72SxWrj7KZLH3lrbFocnNTBaH711lceDwmNj8jt3j8tlSj903G9g83u+7yuYx bc15Jo/1W66yeHzeJOfRfqCbKYAjissmJTUnsyy1SN8ugStj8cc9zAUt2hVffz9nbmBsVOli 5OSQEDCR2PH2DzuILSSwlFFi6joOEJtNQE/i1Lx9TCC2iICCRM/vlWxdjFwczAItTBJ71p0C axAWiJX4fGoecxcjBweLgKrEzUdJIGFeAWuJbSc6mSHmy0tMe9fLCmJzCthIvF9ymgVil7XE 1+/32SYwci9gZFjFKJabmVOcm55ZYGioV5yYl5JZnK2XnJ+7iRESSJE7GJ9OND/EyMTBKdXA +MC5dGlc2vxc/qnc87ml9iywsXrTfGKVwxyN83saHr19UcDz5Ehe3f1pIQ8TJpbd9l8swmP/ p/vNvLMtfFUVbl57JR+rvNBZdaGceU7LpgjBu9oKj0468B8ud1bdWlclzzUniO/wXyaltj/e aSeF/5kW23OcFNA0WPswNYa5Om1nj03rud01SizFGYmGWsxFxYkAnOvuOdQBAAA= 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)(39450400003)(39840400002)(39860400002)(39410400002)(39400400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(2950100002)(4326008)(6916009)(72206003)(189998001)(53936002)(77096006)(54906002)(50466002)(478600001)(110136004)(6666003)(86362001)(38730400002)(575784001)(305945005)(8676002)(5660300001)(33646002)(356003)(36756003)(50986999)(47776003)(85426001)(50226002)(76176999)(1076002)(105606002)(106466001)(8936002)(2906002)(5003940100001)(81166006); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1PR04MB555; H:milsmgep15.sandisk.com; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT051; 1:gdZCCvxsR007UjQBEdOMCxBTWzgQ6AYcJngeM1uM6ZX3I4gffk+rgvHLbgNGZQTKLkq0NLvyOSMKJ2CHTmzdYR9MDwQOA1zZeILQOCl/Bet0fYjj24nUUzLkaNvO5/F2gBWF3/PHv6KWALZ2CNivmH/2tMDcC8/9cFLyuIwGZcqfkBBb09y0SLCyjRrfXXFFpTgBVDdOOS9EtXTsq6164L5LFkYrg8auBpu2jCZFc0JSFG+MEI4ZZGEDTtzZT12bnNc36HzXIGTspBv8MNat9hMZebNlul73AAK4vE3swje0XGG7BqiHf6eEyPYweqH/YmRp4rYJiPoByrr4ktfBTfw+KXkCXCxpe6fftGu7jnPhLY/qJgxPEfquCiub0tKQejM7UKYS0nYIhnk2lamTCffEOqdzEqzpIsCYIy3JqEl2EMVv4SvyrEMUmr0choObcNdbhBd72sEMXw78Pkra2bj1UwJ1Q/654YznGdiwoUh9Q6cBWB/s7HnITdMgdQnKMlrgKs6a3vd5ypFHSWpbFb8b990eR4vpfFHhYK/3+K/65xXwCWUXQvb+hgjtNlU4Z2prBVEpNB7vD/ZA0s4TQwMiuvKFsWnCgCvp1qyr9BIYohQ9n2OCxeNNp4n8kU+PQgYl8cP6utkM/0732yVpy9gAYo8psh0kQmvMOlpck+/ZsnB9agkAqA2oVou5wXqiQxDZmQ853Ef+/bcNBiJBER/Sd5rnLVJcweHY5MrEBNwFvBGf5xSBR7TGCDYirW1KgrxaSwLR54e1AtkSU850I276J/QPN1Fkfupb0A8235nZW1zwS30qx7RNEWqF1fsjn9QFqimpR5rw+4Loiqkv49g9NnAeFGP34tgCc9Z9uW5VwyJ7zBPZQFOhhm2b9zlmlfWVB1V3QGVmLvJ8I/el5aQEyTPSPFine9e0sTYzsn 4= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8c3b7043-3f69-4f45-b72f-08d4b8086606 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CO1PR04MB555; X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB555; 3:POt8GzKJ0MdTwRuN29eUfQFzkS/xTwKEgg1J9urXq6vMlDVzDDGVGO6quBO1cmfg1FjADNDQT55NJhYK7Wahd0GPVsZ1bnf2l/LokcHqIa9onvlnC0zqQS8Kg7hdxsGTqyOjlvBktmTrdNnd0m1d8/BHmcecltVBVOENCc9BiifM7gfnqtWZ6zpJX7y6cwYIBHsdNzTNQ4Iwc+UkPYozcVK3dl8iELYeASJnMCromW1V3LLTBmVh4Jb3+A1jpfQeKC1XXT+R/SH0i4U8QMMxZNljEVFDW062Jjz7omzwsMyhtMbaTnMExlIkwv5uN9/fplPk57gBqdfs3wHCk4fA8iWLtFX33xdvDLtXudojr2XTGK2sd0RuRQ6WhCnSbMUQqb67wRdlWS5Qc8XaqvpphlB+uth6baihHsa7fbibM1mftSmUzHvziU/5d/tuZmwCE/Vyql32yEGjd+rtT5D0ZFK/u4qtpC/KYfypP0C8mC0QknnqHWgsFz8hFGBjIfKb X-MS-TrafficTypeDiagnostic: CO1PR04MB555: X-Microsoft-Exchange-Diagnostics: 1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3ziCTCFFuWrJMvo4etbAcOir69t03gac3UGQrwAe3RdxMCxVe34NQx71tgxRQ0lb+N1+A9IDG72JMugl1bStAR+M6d7z/vK9fg3ficfgqhXpwuoZhvOc76WFRE4e04Yxx212IRnWWDRMknSfyjvmglTswboaVGs/cNxypQVwbhxdr+WaxHiyhsrcnfJQtPCqYESuH2knmZGD3HCy7jEEVYt8Awf779C7fFvjCv7C1nHloEJrG7bVBNfpkKdidgyw6ZkSFLgKQzxidOqwC+/+cwlYbQ3cVmykH 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)(8121501046)(13016025)(5005006)(13018025)(3002001)(93006095)(93003095)(100000703101)(100105400095)(10201501046)(6055026)(6041248)(20161123555025)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO1PR04MB555; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO1PR04MB555; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB555; 4:QZBlUXuJEniKzep99RCmj/oHTDxqb50iaLD3AMY5C0t?= =?us-ascii?Q?VhoPs+DhFJY4/Y0DAqT3Po9gtxluPmjcNFifPKmkon9hln8QfV5O+JRGNEhY?= =?us-ascii?Q?6w5g1oxYqCOHwoINEf7058JrMYav4gDRv5Dg3tO+jKCOTM6P/fdDyE+E4MKR?= =?us-ascii?Q?y3zRNroVJuT6RKBsKstiVW6n/6+vLf5YwefWxVgu17xV3xlQ6Gg6iVaQv2d9?= =?us-ascii?Q?uwAMbgtgx0327cVufcJ07RfrPGn7J1EXnx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yw7r1FAwYNk92kGQ/Y79nj7bjDD/7SZXsulb8VK7rwebcfp2?= =?us-ascii?Q?jOBXEQugN4LiWyFKhCFetPGsxNw1XYEx2cxfUkAhJydge4/GOsOf+V7vXD+9?= =?us-ascii?Q?gcb2tvY3CY4nj+kioMzzP6r0rjBelS32mhLZJ+4D5eVIBogbsfD7ufXRCgQ?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 03449D5DD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB555; 23:yPc7z4ijN2xlnKnjCYbLJ/krQNmPFZFAHEWB/tgkba?= =?us-ascii?Q?6OWXxQJgD5/mTttA6eK6sulXL7AH7JVvDL3DAiy4iV4ru19sQnyuD7IDNDYH?= =?us-ascii?Q?GLWuHH6YJwwtT+si2cNgaMQotO9v5mBPaDcvyZa6px8T1yiaqjoqAOmUs8oS?= =?us-ascii?Q?j/V4qnzLpwIWp3xAtV12P4tmLQFLvrXq8f6U6GnN8EesxWm+yGOh7MYL0SAm?= =?us-ascii?Q?5pHw7JtwPP7cNWjj8XTFSfPfhV9PUVU7p+UCEuQkdrSpvNmqYteURPqI+cRa?= =?us-ascii?Q?goQR8H3zQCvMRjWK+mY+9pcBKsg9FFwRB+xcUZCzEo17zLe/yyLXIZ4bJVvG?= =?us-ascii?Q?ZrfcGl8WTtcj9ai1OZhqX5FqQkyYk5szE50gi5BODIAW25MFrqnSni/S/D1Y?= =?us-ascii?Q?REaTZxhr6EofVRcUZE/+fCCizTuCECTTBfbKVyKkOE8SDaXcbxTqwe7uzAl1?= =?us-ascii?Q?UbKx/wyitvdbbDdi3Y+c6EZEATIk5ZndRxZ2E6FCm3+4dPzH9UpnrYPqEMmA?= =?us-ascii?Q?N7s1hYLpw5Pem2PbuIppb+ZMhFn1HbQvoyVuWZu7PZeIJizsbFJRYK3MUDib?= =?us-ascii?Q?YPF63cFL9+XMwQCw92AI07vihsxHQmc/MRT1hhmW+8HqffV4iK3kw9lrHP0D?= =?us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MpCJSvBmLU9moDYOZIGOfD68mbf6QtFY5FM3arFZWXpWbtdknvBAn7kf51AMwfJZ0YN700qnVRnbVClHRTmhTkPLNYNnDX6vFyNz9jDxwEudFCW1lU6og1TXDsNVwDmRznHGbJZSW1hTOdn/d+xGBU2SgPVP15kvSG4iYQGCVgN2XwabtyFydkvyuu1EVoRrsXYm63+pk78sJT3EJn6jx7ix4x9KbrARJHScgO7u2OoRx7GCcO0GJ7gm/g86rxtEYkrShCZHFOm9Au/yj131ncQrWhIQ99LOrT/p5a6IqDPxmOwLcIFE0W1K+PTY0kBmNGlxj8KNNcd12Ny25RU4= X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB555; 20:ET+F8JQYOEid+Z3PC7HeuD2HtkOSXABXIyunlLkY2t7r5on9hPJxdBzhEZ5Mv/kLLFPBCray/f1c1rYzk3Ez5hNSvkWK3gHgqoB/h6XHl+k5W8vnPBfx15MXk1DloRzVigVUAHgmUtPKx4LQECQJNQDq0zGcyFN60EqNzrU3HWM= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 18:15:56.9860 (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: CO1PR04MB555 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 From: Bart Van Assche 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 Reviewed-by: Hannes Reinecke --- 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 279e3c432d7b..21f6f1020303 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -1347,8 +1347,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; @@ -1356,7 +1356,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; @@ -1369,14 +1369,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 3e0cc11b1a90..2d21fbccc3a5 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -328,7 +328,7 @@ static struct request *blk_mq_get_request(struct request_queue *q, return rq; } -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 }; @@ -339,7 +339,7 @@ struct request *blk_mq_alloc_request(struct request_queue *q, int rw, if (ret) return ERR_PTR(ret); - rq = blk_mq_get_request(q, NULL, rw, &alloc_data); + rq = blk_mq_get_request(q, NULL, op, &alloc_data); blk_mq_put_ctx(alloc_data.ctx); blk_queue_exit(q); @@ -354,8 +354,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; @@ -390,7 +390,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_get_request(q, NULL, rw, &alloc_data); + rq = blk_mq_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 3f2c22a42df6..3077714250ce 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h @@ -202,10 +202,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 22cfba64ce81..c2844c27ef65 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -934,7 +934,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,