From patchwork Mon Jun 19 22:07:55 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: 9797939 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 38D5B60381 for ; Mon, 19 Jun 2017 22:08:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 222FE26B41 for ; Mon, 19 Jun 2017 22:08:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 171C526C9B; Mon, 19 Jun 2017 22:08:39 +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 A4E4626E49 for ; Mon, 19 Jun 2017 22:08:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752440AbdFSWId (ORCPT ); Mon, 19 Jun 2017 18:08:33 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:18495 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752670AbdFSWI1 (ORCPT ); Mon, 19 Jun 2017 18:08:27 -0400 X-IronPort-AV: E=Sophos;i="5.39,363,1493654400"; d="scan'208";a="129340297" Received: from mail-sn1nam02lp0023.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.23]) by ob1.hgst.iphmx.com with ESMTP; 20 Jun 2017 06:08:18 +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=itdRfCD56zw4dX8SHrfIRDrfIBuK+XCSN3e783eJ1g0=; b=nJscku9xFokgmEwlGyqrcqmrsMNhMjM7OMAsVLfH8bFot+Tddp4v2zW0Vji2n9+SX079t8lOR+r7nMPGxqT6Pwg09v3w8KDnENg2HlFmcs7MCFwsNyfenjrqnlGV6uuRyrHdRXATAxWSUeZalDnSi+tL+vQq5qsuIC/nMJoHe1A= Received: from BN3PR0401CA0019.namprd04.prod.outlook.com (2a01:111:e400:51d1::29) by DM2PR04MB559.namprd04.prod.outlook.com (2a01:111:e400:2430::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Mon, 19 Jun 2017 22:08:16 +0000 Received: from CO1NAM04FT032.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::204) by BN3PR0401CA0019.outlook.office365.com (2a01:111:e400:51d1::29) 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; Mon, 19 Jun 2017 22:08:15 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.21) smtp.mailfrom=wdc.com; kernel.dk; dkim=none (message not signed) header.d=none; kernel.dk; 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 CO1NAM04FT032.mail.protection.outlook.com (10.152.90.130) 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; Mon, 19 Jun 2017 22:08:15 +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 45.03.02805.D4B48495; Mon, 19 Jun 2017 15:08:14 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Mon, 19 Jun 2017 15:08:09 -0700 X-AuditID: 0ac94369-9c18398000000af5-37-59484b4d19ca Received: from exp-402881.sandisk.com.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 97.4D.11415.94B48495; Mon, 19 Jun 2017 15:08:09 -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 v4 06/12] blk-mq: Initialize .rq_flags in blk_mq_rq_ctx_init() Date: Mon, 19 Jun 2017 15:07:55 -0700 Message-ID: <20170619220801.12557-7-bart.vanassche@wdc.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170619220801.12557-1-bart.vanassche@wdc.com> References: <20170619220801.12557-1-bart.vanassche@wdc.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5ka6ft0ekwfJ/rBar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvj9eRjjAUfuCuWfuxjbWD8x9nFyMkhIWAi8fvCMaYuRi4OIYGlTBJH fx1kg3C2MUrs3vKdBabq1KXlUFUrGSW+7vrKBJJgE9CTODVvH5gtIqAg0fN7JVg3s0ATk0TL hB+MIAlhAT+JmdO/sYHYLAKqEvNmPwWaysHBK2AtsfWCDsQCeYlp73pZQWxOARuJ75N3grUK AZV8fj+BEWSm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qh2dC9YBAAA= 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)(39400400002)(39410400002)(39860400002)(39840400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(81166006)(4326008)(33646002)(110136004)(50466002)(5003940100001)(105606002)(36756003)(54906002)(356003)(76176999)(86362001)(8936002)(72206003)(106466001)(2950100002)(50226002)(8676002)(6666003)(6916009)(77096006)(478600001)(53936002)(38730400002)(50986999)(5660300001)(1076002)(47776003)(2906002)(189998001)(305945005)(85426001)(142923001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR04MB559; H:milsmgep15.sandisk.com; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT032; 1:O/CrGplVeLBV51+1vlqibco3O4DHWPwow1AhK+h9mOJ/1eFsE1NnvXcTCQPuWmNDWjLvVBgbw/c+mCLjXj00PiDVlJMIKQWS+0vqjVBT/eR/i7L90mnEhhtLduMicXpgk+7ZZ4sJqCO1UEFZ+ZnY8ruLDZOVVJd1PXtkRvuy+BI8SwkOuKIqvzwaJ9NxeQ8mjnM1bMs3RFNQ03Alk1fMWu2MYBeyGl5K1a+nvoK+43MnGmIh2ViY99WAIMQmjg3DbxZlr+ro7NY1sTDOrkp0kGOWOxFiGDcer4N7bqMHgh8wd1jDMx4WQk0njxuDvxNr7YarrTLkgvnKE5b+rS2YTo1sJ+16opTSYCYIFdG992QW2UHO+tZNoOxhSYeaclhMWv8f4ZDPQfXwEWc8nlTZfhonDgLMiB1R4lJ/wLrjOa76SDRqaXC1QrsZgxB+GN/cBb92WDHBBkBSZ6kexUXvso0Dylxel9edVjag2YoXdcLU55XoOz6EfRtkBV2044R8R8wqYTc5dZi0RfWGm14G9w== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR04MB559: X-MS-Office365-Filtering-Correlation-Id: 50b7990d-4c87-4c40-f734-08d4b75faf58 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR04MB559; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB559; 3:iVO9ljUKgl2fiLKmEemcM2qNtfbqT1pPL+8+bhHtHEkSoczXM/MZeOYI6vwH048EtjIZf1/pr8ctq98P1NZNcuu0Mr9C5BP4tPH0EXeftiyby87bnamJOsTRnZClA+bzXUFXXuLJKO7xsZKzhwkKrnlQk5oEAzXmLQPHbh7jCL3IXjp6WeWP7ClI0S4eHNpyiyiApBPAefJF7QmJOgwTg8H/BdxW1MwZwNXtbfiHijXS0+kTvW1OuK+lAJKHiQBAYPTnu4fYo1sFLOQuN6WoYxnm4e6YF1Eef9fejEwaW4kKnl78jDYpK1BB5OWdy6ifLytxQNAk8fSRjePCiKoxgN6I4Dub1vAO9dlynnjv71QpS88ouDU3V+co+a9JhTIg9yykD7TAurDEtzT6b42Fezkbk8aTr+aKs7aE8Actd6HeQgniv3CIxtqstpEAmR6Elppx22u3nElZ2f0jApiotOlqjODjMTfVM/D1+OKvERx2k3BODQWoKzeu2T6+V4Oi X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB559; 25:+o91AL1w5jBSj5V4pK1SAY0nu3P2HpqmtYG7j9Tgj22tFHB2/gCG0A82SxX/heAf7rfSe9KcY2rLa0SxZ0m75S73hndHo9HPcIofIQwlQr/FgeSXCa1gbW/TUL0QgcNm1HNfh43EiHJHVq7e61mTtqwMrdUP9qKF5eIh7EJHawx8cM0Egf1/tbdvuMpxPbW5Dci3MNafWAsHneXmZmHE7Axesq46DlXfe2hTEKGRB7+MCXuLVff/h5mkAbucHY6fjgD/swrPINor5FV+kgU5/ihRxgekM4okwsNCQTLRGXLdfYinKwo6Ofpb2RaOM+lNaWpCRm2vvJ/qAqZ/h6AAzPaCc6S3S3coa9KL64bMumo3i79npoP4fT/gvjG+LIv/U4JG2rKOK0CHGXc+JNT4kd4PCS9F+FAUhfOXObwF44c1J28OrcekiTQFbUtj5ShXTnWTP3GCPjPLpJSPpG5FqacdsiRhaEAnDYd9t1cn82A=; 31:YQzk3VH+QlRYFYhn7YE0fZyW/TY4+r2gPcTorn+cOltFEHqe3KBnOKsri1QE5yzjlNIdciVhul9L0fJdOlUn5i66wA2JJ7BlhYxQRhn8wDYumL98nM+NEqs3WXISqXLR9nlQdvMulYBiHuUx8LBo8xdFr26OD7g+IcH/U45fINDLUmXwDaqsxTMEMmPHOQxuwFiWXbuTjXydmj0jgU5wxztN+0/+06V0odNrES/3U6p4Ue1he2SKpDMmhBnhPhk9zNhjugT+gkb3oEgHTYLpxQ== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB559; 20:C6LTbU3X4l8Kq7RT/G1y5Zh3gE2hPOS69vrZwDDVMDKlnRQif+vhX8XlDPb/N2dN/TCS0kk6VAjCWz5OvF+ZTlil9LBBwCkZpVew5oNiHhL2XZp4ZvpldWMq8QzBx+tBJDKhQi84OJ546sRKYTT3pUPdMqsH6//0bk1MurDod5DU/wxBK99zCxUJla+7BaBYkpXdRG/bWEoX+Q6Svghx9KEOh1+QxyBgbS9ABvt+GwhhYBzGNW9x6CXo7LI47ADqpka2aZkKABSS8hRhUYd3mI1+yAZG0ETuPK/DH1prFY6bziojL8HAXutvyWh/70TyVa5x+NRyR1fD5xPUfCOfoXWfH12Bw4Jp53B0aXtONbhXVXceJqrBEPLslv1CK17tGHUskmZ0DJvR8PXOWP3+n4nhrH1zQUMvm5FD0Hd4hpiZfjUYtU2/in3GQdjztGeTeRD+y2Gr7Ag8TBUjkGetCQz4ohBV8E6MsYYE22Ur3JWAC446nU0HCmEn5giirtaW 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)(8121501046)(5005006)(13016025)(93006095)(93003095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR04MB559; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR04MB559; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB559; 4:nCp4FpEEf/GYCrLVA86b+DH80jZcBWSxT5KKDB0Bfw9?= =?us-ascii?Q?ey8YOLm8gy3PVq/Zs/3ZuDHSivSWA1SnX8PIzHcQ2h8uChmIs/BsKYUZNF4C?= =?us-ascii?Q?PtfRmist5QF6yQ51wGowzIogMlm0K3QsPnBVuPqZaSVUi4FK2i3ITG/xTNYS?= =?us-ascii?Q?4T/qNChgULtxBZG56LT1nzpZWKCygxneD+TIr2d+AZoUeiEDMwj7J35aP44y?= =?us-ascii?Q?BH4t+2mWpIU/oWMOXtKp5yeUUquTgtHMEuhgbkGcppHx1AXj6G7WdY+YSJn+?= =?us-ascii?Q?yQCdchHKH+qZeJGv2KJT9AllX/+lnsJ8WqrT88h9JxkHsb5fTymYJEzn2Kh3?= =?us-ascii?Q?gnEW3RgYKnJI6YDoTmSNf7UPbgJ4PneuwoUF3aoPfylYsRSNHsY/48HabqYO?= =?us-ascii?Q?/TfUH9JfPCqytox6I+PNg0voq6bbEC2ortTr1TQFNM3OsvoSspBeyZbmQTED?= =?us-ascii?Q?rH4cDayb2tVIbKbA8TQ9Jzk7GBM5essLmcW2hF983RF5fUtsS0fOsaOJ3Tbm?= =?us-ascii?Q?eSHvkYtk/QokDE2H3eXlcAsT02O9KRN45WbRofNMsksnfwTGh+n8NoVPV1vM?= =?us-ascii?Q?lbrkaTUVatK8F3Z4hPvFmOA+TQJjZeCRhuFJrYh/4/oj9pPAFSWPretz1b9F?= =?us-ascii?Q?ytG0odtVREQAkWZQ7hPvxR1OkklhQOgYeR4BQmHM2FGVeGWQWgAjrGF8x8Wd?= =?us-ascii?Q?3vC7dZ2UX8pnRBHy0MlQPWdrhS35PiNCbduD9rr8CwBHNLEC6WwB8V79WFUD?= =?us-ascii?Q?Wx3etg7v67MH7LcguLYI0XbYlHXdE30eLy/8G1lWrG3SXZ38+lr8j2svodSk?= =?us-ascii?Q?km8+vPZY+XLM7mFugr8tXgQPbTm3SN8XkXZJi1t92CatJHQHyQtw5fqzlby/?= =?us-ascii?Q?SZcSgKkKbmix9BtN/ivZ8/8KVEUArDKIFDlHnkorGxhEl4Jc3YJNrvJ8v2B7?= =?us-ascii?Q?w8fyzk6mYTzg0maq3zz1oAAdkUv3warE09rSCr7+4TvxtRNmdVn+rJs14vXn?= =?us-ascii?Q?ZiM0PFsZCQG5+0qdGFTTscdPaO6DVhIPdJ/tmzOJJHVpWsG7z2W5r7Fb2ObR?= =?us-ascii?Q?NvAt8Cn4D8dTncEg2zS65ZoyJC4Qkixv1tAAPn8V2CcJ95YJE8gyLBYjI+Ja?= =?us-ascii?Q?6PRgIGg9n/k9W7feV53lTmm5ZE/JJlWjykD15y6dM+x7ApHtQKq36iaf//DG?= =?us-ascii?Q?qdgDcwThwcERuo9ooNnH7zRpqTL3GaAmOJkQ5W2IhBm4HifRjdhEG0cMTqru?= =?us-ascii?Q?w0o1ejIGDi6sWawjBzR9DogZheQ04fGqz+r5kquMP+UJ8vb3gKHsHtHXG0g?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0343AC1D30 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB559; 23:BAwkRDzJaLrBRyDyZRvy4gI8vh38vRKMm9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4d7j/4eK1ahv41vYHqVgC6l0comtLqdbvIXoC?= =?us-ascii?Q?PpWtlASqeeF1rYf67QZWmttyiaATSoCkXiMtUGhpKm+MU+9Qf5/pZGiutSFX?= =?us-ascii?Q?7h2t4evL9KML/TgyVmpIsFbEyvowQNkVoNCz/j9WNWgEy59DRsCsGvGp9ETm?= =?us-ascii?Q?7UEeXuRCA+a1abEut0Iy3AC02Mrrln24rwBcvGlmuy5kP7PrUGDvscVLIwqs?= =?us-ascii?Q?0afq+z/ouoaJiOH8GzihPJdavDQqB/R3mm2c08BQi8sqjjWx966swEEpk38B?= =?us-ascii?Q?bADVMSf4BcAM0=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB559; 6:xt3y/7DZt2tvwYPeYxslh/9wvef6mh3wOAf6ODdA68B?= =?us-ascii?Q?+TSYpxtcfRVj3Bv9eBJyH/UtjLgIktKj4iKEH8kOprFD1eqEkA3c4E8vnQMR?= =?us-ascii?Q?/nvgWHuc51p/839BDYSBsmDtmfdsTizFbKkynfUFsFrVxRUcHema9xxrJJfJ?= =?us-ascii?Q?MohRjImmPYdi16f3h/81QC//7FHXPIB+6Lf3tyGmisCCn0Vn+ZqiabaVxZYG?= =?us-ascii?Q?pvWcA/PwW1Ye16sslf6Yc+Rb4Uupfx5VMgpfTrDY66jZgqY29HCCs6TUz3/e?= =?us-ascii?Q?nGZ0Ftpzsc02kzLf9Cdgy1j37ySRvzIZljffupRydCDuPhnktKcSJFfzdg1k?= =?us-ascii?Q?OxMav6DqIFBQhcRfXJCRDY+4XGS/MxiRzgYn95FaqpYQJ8zAog4G4kkteVrJ?= =?us-ascii?Q?D6UQW2TidorOyWGthGkl41okTVbkYnC+rcy8qtdvcj0VJZpViO35BzNcBdLZ?= =?us-ascii?Q?TL1RDnoRyA8PgchGS9hkmFiwZ0vDTI/jwfjs20BCYSUfcpRNhoPv0crl5Rgc?= =?us-ascii?Q?YU9DvRWVCgZxnOKmn77pRo9jEaUdZXEL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d/5MQokzSNwH6mk7wF3VT2eeKk+hR4yqGuNxteSLRp23NR4sMtU4T2M8KV; 24:hx6ef/CUd2nlIZi6Dx2soigrPuVaGBJlfp0ByLkyKWVJc6HwWNxyAgTbbrx/uUKWPNVaNriZo3ScZwhOgfWM6MGVx4tq6fvbd2Z9VHzmldA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB559; 7:y117ucnml3Xo2ZbxAguGHx+OxsyIpZ5BEnUBpWp3rsiBxAKS/W/QAL2N8lTKOqA+C80yXIYVikmqdj3Nswggqq/GE4itJ7ik8RJvqXiA5/8Ju+r52fPN1FrwW2eyg/ZIGmhZCob3hD3OaSrmbM5oHgC4WwdoW0fIayiPJtE6FkNkNUoTBjMWnks/4b901RuTaAHYvH4yDC+nk4gqNWy498OZfrBh6DT+w3DQOmPkvzXfyniniwfx/0XJyoz6rWDMhGzBKDo5BSidBhEo33Zi7by8vIAn4jHvZ7Qvz0zyGDzgbmru2pD60TXsXlhPQEnxZv78lEqyA0dhbR9CiXld47A2ym5qkS83A5GX49t9dMMlAGXxp3jl8k/JniJORpJa4XGogqWcMVrUSFi1cX2e0ny0HcsP3snl4EG8ZGYmQkA4rWCOIDzCMJamXIGMkrgkRlDP8aJkT3Ilc3pq14FOKxrFIkLteDdYRGYsMOKXyIixFBk7/olI4/RfL3Gz0nDYqcz9e7e9Dw7WzGjovww7HsMhIzVPsjRLC9HECklKd0KWhcYbjbZjfu8CWbjWCX7xCR4iT3HSwXMPQT086rPAChvAuVbRQ82JGWvjggMC3BqXEqBaqvDciPvgLrknrOHKldxgzKQrZg/eG3He5aS2YmUrvvGh0x+pG20zM6yFHw3a1o3Ykf9KU/QDYS4558M7h6NfSdesvi9eBilCxhgVnBy06eydCM0LfFZq5ASQ6Pi2OtHhnFaiTBBocwbABusEM9xXqOokjVO5xE6UjSrhQwcdOVaZZJUni8O76F8mTOU= X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB559; 20:11GhyXXAG4hw+QbG7IjQnmuCfWrwzq3c7/gfQaOH6IhW+/q+mnAbh2tv19E7X+hL5PsWEikosOV8UCU/s0VadsRMxC3znqQKo+iFGzEcUgiqRwV++3hjz45KQh+pmbghTuyG4WbKltkeBAmdRHImOmMezwyjBOtZap8S1YyR6xQ= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2017 22:08:15.3951 (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: DM2PR04MB559 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 Initialization of blk-mq requests is a bit weird: blk_mq_rq_ctx_init() is called after a value has been assigned to .rq_flags and .rq_flags is initialized in __blk_mq_finish_request(). Initialize .rq_flags in blk_mq_rq_ctx_init() instead of relying on __blk_mq_finish_request(). Moving the initialization of .rq_flags is fine because all changes and tests of .rq_flags occur between blk_get_request() and finishing a request. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: Omar Sandoval Cc: Ming Lei Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig --- block/blk-mq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 8cd423ba585d..679b52790bc1 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -260,6 +260,7 @@ static struct request *blk_mq_rq_ctx_init(struct blk_mq_alloc_data *data, rq->q = data->q; rq->mq_ctx = data->ctx; rq->cmd_flags = op; + rq->rq_flags = 0; if (blk_queue_io_stat(data->q)) rq->rq_flags |= RQF_IO_STAT; /* do not touch atomic flags, it needs atomic ops against the timer */ @@ -435,7 +436,6 @@ void blk_mq_free_request(struct request *rq) atomic_dec(&hctx->nr_active); wbt_done(q->rq_wb, &rq->issue_stat); - rq->rq_flags = 0; clear_bit(REQ_ATOM_STARTED, &rq->atomic_flags); clear_bit(REQ_ATOM_POLL_SLEPT, &rq->atomic_flags);