From patchwork Tue Jun 20 18:15:43 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: 9800063 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 7955960328 for ; Tue, 20 Jun 2017 18:16:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C2812624A for ; Tue, 20 Jun 2017 18:16:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70CC9281E1; Tue, 20 Jun 2017 18:16:13 +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 C31D02624A for ; Tue, 20 Jun 2017 18:16:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751434AbdFTSQM (ORCPT ); Tue, 20 Jun 2017 14:16:12 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:57902 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbdFTSQF (ORCPT ); Tue, 20 Jun 2017 14:16:05 -0400 X-IronPort-AV: E=Sophos;i="5.39,364,1493654400"; d="scan'208";a="26845373" Received: from mail-co1nam03lp0020.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.20]) by ob1.hgst.iphmx.com with ESMTP; 21 Jun 2017 02:16:03 +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=6CJYisogG+9yTqv66/G/iOMpx2Eud7JRCpyj9s6OLT4=; b=HbaRVUApemJeqY45yRWzK1TSO2hyRzxJkvVT5YoVUsZQRPkUwmShFCbo8e+/W+slE2qBT3pGNa0XQK7nsPFcPT7WhFFuW+7d2pI7Alew+C8uBMeghMS8IIfZtmF6hLOGwM0THo8yJf3YkBkO/bMs0s35moq3cFnsPUvxOEBPS/M= Received: from MWHPR04CA0048.namprd04.prod.outlook.com (2603:10b6:300:ee::34) by CO1PR04MB537.namprd04.prod.outlook.com (2a01:111:e400:103e::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Tue, 20 Jun 2017 18:15:59 +0000 Received: from CO1NAM04FT064.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::204) by MWHPR04CA0048.outlook.office365.com (2603:10b6:300:ee::34) 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:59 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.225) 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.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 CO1NAM04FT064.mail.protection.outlook.com (10.152.91.144) 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:58 +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 74.50.03809.C5669495; Tue, 20 Jun 2017 11:15:57 -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; Tue, 20 Jun 2017 11:15:13 -0700 X-AuditID: 0ac94371-10e5898000000ee1-55-5949665c871e Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 13.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 06/12] blk-mq: Initialize .rq_flags in blk_mq_rq_ctx_init() Date: Tue, 20 Jun 2017 11:15:43 -0700 Message-ID: <20170620181549.24903-7-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+NgFnrOLMWRmVeSWpSXmKPExsXCddJ5kW5smmekQdNZNovVd/vZLBa82ctm sXL1USaLvbe0LQ5NbmayOHzvKosDm8fE5nfsHpfPlnrsvtnA5vF+31U2j/VbrrJ4fN4kF8AW xWWTkpqTWZZapG+XwJXRfbOJreAFd8Xr7wuZGhh/cXYxcnBICJhIHN4U28XIySEksJRJ4sDn lC5GLiB7G6PElJf/mEASIDUfnm9ihUgsZ5ToPTGfBSTBJqAncWrePrAiEQEFiZ7fK9lAipgF mpgkWib8YARJCAv4SZye2QBWxCKgKnHseg8ryGZeAWuJR/cLIBbIS0x718sKYnMK2Ei8X3Ka BeIia4mv3++DzZQQWMcqMXXmK7AiXgFB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PAttributedMessage: 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)(39860400002)(39840400002)(39450400003)(39850400002)(39400400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(50226002)(189998001)(8936002)(4326008)(54906002)(76176999)(50986999)(38730400002)(85426001)(33646002)(110136004)(53936002)(36756003)(86362001)(2906002)(106466001)(77096006)(50466002)(6916009)(105606002)(5660300001)(478600001)(2950100002)(81166006)(356003)(47776003)(8676002)(305945005)(1076002)(72206003)(5003940100001)(6666003)(142923001); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1PR04MB537; H:milsmgep14.sandisk.com; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT064; 1:EQALywTpxMi+e+yAh9PyLJjKUG/BpFXSjbr8ZdfzvWnd3G+6a1hw4mNbalFVLM/fpgd1b0ANK4R3Ak3FyS3CBCoFzcMrLtnbsYcvyrVUgAlo0fBhoytJKFllvOJ/8aikDTcPNxFiihVn8tVgj8I/f8UG6dDnHC8Csw2WjenvOTzaa0JfD/p4AmvbaYGyTsvdXNvw34ssuvGh4sOhRk4G7z81xWY95HIPt/UCONLIvAbpxyFbKXG6V7eP1ALi1JdZ+zZOX+ry0r8Ml9LIqZFsW72fa6bYVdqcmy0ANsZGGN2PrFadK5ymZEkQWDJsw3FtdWTr2MjcijHc2g07dGWdCSDQWqEBV/r8ODVVoOmqrEVTi/W4p7zyYivwVlPjkFqQN8/oAPyababOZwtDGt3YojbPVdZ8jU70mcDQi6wv9FBZ/tk1QchmbmCL4WsauKbRLHN1u/853Zw8LEWIKbqjxO0dafS9w/jIK1iVgPIj34macsaPfbNfPEGocdZ+EUUovWbhJ8wAtK3W8qRAbcce+w== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR04MB537: X-MS-Office365-Filtering-Correlation-Id: d7d91a59-00bc-488a-36f7-08d4b8086705 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:CO1PR04MB537; X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB537; 3:sOnjzJMVjyH06y2K+CTwWHg7S9vAJdjAe53Mdii1ubF4Eg3XszUic+mf+JgdSOHdwX1jyXf1Dr0LZjUx9PaUYdgjq03Y/NUj0lHe8oNPiEHasmPMW2nY78MTjh+bYslXeuFv8lV98fdLiLgYVUi3UN4xvSpvJyyweB3U3F7ihtse81bb8TokJ0+zJHmL7MI1ECF2Xw01m0wLoiEKyHFjC/kJLK7NmcFLgWhb7UnQfg19AZGPdPjaJ8cpeQcchPHfZggOyDSzsTaATA/qvNA2Ofw2ibW0P8cEpdZXszRd5F/LIU2r/fQ8fE64WtIqjLt51B/leeHVGzJ8/p90maYgPsrefCOrj+ClvU1quWxdwAcl25Hy+qwOk8ps0YOAvArrMaKnJatk/nrvqNVUOL4WNVydWPNjZ/eMiq0Sk6kxshUzYjZnDgPlBuA8bTpt51xswAUJEolPKuEL/oyeaq1ocaaylTY6TjwOlUW8FSXuVWQ= X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB537; 25:NgNrXEPtExX0FDzQM7YsOfJ1qj9vGZxmBkbLbzIgPooIUDU8aWrKIsG0YTB+e64ibfPVT4QCtqfKAeLZL3WPYMz1JX3yZb3LfPIuzz9w4l6AKo3zG0PI0MQt1l74fAaA/yMxv71VIKYHfsmXX/dbNLCf3GOXPoNAQjNf9FtYS4Uu0loT2pxrQsqFYb4PI2CjF+l1XbuW/gJEOyQ9ZeZRJTpzFtQubKYYd8LBsM6Hyvj7bBlZhpJKvcdo2YAcVJ6UWMIAxb9apn4A3MQoo0C0S3a9OGw+1MwiOQ6gABeZpZdQAxQ0ht/ckvZTUYjSkuRMF8OVJhAf7011Lrg7/h9RBmVCfDSHokk4dw4VF4svCJerseh14VYVwsZXifJhfx5qXbrkIeYCblRCqDrckUy15tBMHAvuF3w6u9hiEs+1BLjtL+bTX5R/G7Rud6DcIJmddoWYOO3H63HtWFDc3Uum0dWiZV5NZj2UNHASRaBVJiM=; 31:zh3lR6Qse8xanaOTJ29zCuxpsIEmsf4BJxP74n9jqUXU+KpOzuka1JRb2+S96xZxGJ99N3C66t3pLDuF35Rs0rRn/WipVmp4/y5TNb5TRTUBcAdZnBajkVS4UlVvCpbcE1OOyUj2HlvZOfF+hBjQI8fMsKHax5IX01P29Y8L9sGrfOmkpWBPiMm2vJL16SI9JZiubsDtkK+kWjXFfYGcaeNh2/trSrCb6dJcMNd1ZLHMFlQj4N8qMQ+PQ/8bvmRf WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB537; 20:IfxbHSOCItO3FiqJ92YpWG+k6JfvGPxE+98+9UftTCN5rvxipB11fxM3Hurtb7mp6sfBttn1zLl2fZwFCzB7Td3OJleprmSj3ZkNb3zwx4B7KHI/tUaFIMhs8iBkfDr7xUl4lhDKFjmiQsCodZ5W7G2rEtKjwNIqQqxalXYCIGAVNijqXs4QpsgInLkd02Z0cL0pQ9/oadtwBebjRnDMx3kDnbWo/0C+PlvA0zVy2bIbMCAWk0bGOIIRPNmJmeShonre2AAp0AowLgA7xIY3OP+VlRaWVSH2cUUj7Wu1ksyhNeY2L3yQzyLbQn+FEEDz4y7g4WuewS0+NEikB8O8DkZQ+Z8loHkvWW3N6s/OuUdIirAqh1D5HIMoTgK/sKiSTNgOlHQuxncM82LNojQYgeFkx3S4yTZMC1UFF2KLpV8DAza5dJ/Xwe962Di2bTrayYUASVDP0BEWfSkTB5BZmn4gMTyWyHjqGDmqqgRUosWYxs9lwTqmObF+Ootj0hi/ 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)(5005006)(13016025)(8121501046)(13018025)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93003095)(6055026)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123564025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO1PR04MB537; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO1PR04MB537; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB537; 4:wC6jQCXrxJZ3tl+iWYx0NfthwdelLMlhF0zPa2ejP6g?= =?us-ascii?Q?94iNmu8aOisEIdWnc9naXntWsXx0khYnnFiWoNioU5n4tqf+FUi89c+7+uKg?= =?us-ascii?Q?jvlAJWaFnhZcyFZXa2ihhypSnK8HXWbEhBPvjlhKorParON7M2nFib9+o6kD?= =?us-ascii?Q?ghLBieCwnq0ZUTAXc2B8h87gcBK04E8uHRZq+VKJUzS6xdtxYLMqnB3Zz9aH?= =?us-ascii?Q?aPvpFurBzETJAc2aC+tGKBQzF5Fm8RPvhMO/RKJZY8B05VyQBsS87dvnoXTv?= =?us-ascii?Q?wEQt1/z/2g/vzYsAKx5+SgiBfQOg0n9M5n4bR6qTNrZ0gWN3RT/httqDcqS4?= =?us-ascii?Q?CMimOXu2VcTMuD1D39pjw4ghKZgqKPPiY+siZO9XNPpml4CBBsOGtKxE+w/W?= =?us-ascii?Q?6ndn/osZVMMPuU+DfysqXeSpJXee+5bi9gfpRmQ191zNsXCdDcQ8GseR/qv+?= =?us-ascii?Q?f+vEbhv2TXzpwekB+ayPExotCc7QJR81EQSDcj4jJv3qz1po/KpVdYF/UJpk?= =?us-ascii?Q?DLyqZJEYgQAop0CudkozmHIiTiVN9Qgwlble8Mv8H02TNzDQDz9S4jEwQK+G?= =?us-ascii?Q?jbkwR1/tQOXVopHJU6f5aP0RxHV3h75omJV9MT/qzSa/tApO6wPY4AJfE06J?= =?us-ascii?Q?xFH3s00nbPCrF+wldrt74aZAW8KKVkb6axoxhOjYNIbt268LkLIH6u+TUy7I?= =?us-ascii?Q?ybQu95zbdTpYJzoGj6ccqznMhl/Ren/vkmhznD9YkFwaHgSogvCdLQtFx5NE?= =?us-ascii?Q?HErEZahs3dhobqPNoB5vwuiX+6y3OHYpveK7PTFx2yX168w2ubKHX/MBl9T2?= =?us-ascii?Q?/nurtxt8Mnyjg/pfV5oRD+Go2QstKUKrmX6nPyraz7lm8gWBSDX3VMAvI859?= =?us-ascii?Q?X95Wjiy5PGvnU2LKzYByODBhxipisaxz3zlGlmrZNZs2VG5Twu4pD7/5c1ul?= =?us-ascii?Q?0r7dZT8fyegHIEVSexWEZsh5WPUVUkBDvZ+FpxHCF6/P6ElxfguEsBy1ZDHe?= =?us-ascii?Q?Sjjq78ojp5zya/12fIr+R9rSSIYb4LDML1oaAxN+tnqA7HeESiKvxssaXvta?= =?us-ascii?Q?V5qxu6fTa7qbHZV0Vmm/PRaE2IFdlHWoEqdw7HSmHZWaiCNW2eGIFaLRMPu9?= =?us-ascii?Q?HKUcqGLcTXklNo8PzHuC5GUy9E7XBujGaPvGTiwmKcl26TQIQrKmJtpDDFsF?= =?us-ascii?Q?kxG2CvRv/+NxkhrV/CaMbd+tNfhMkwhMZLjWFB5JINWA9fPiDHzFTip6fcLK?= =?us-ascii?Q?cbdX4WhJ1iQ3K0q0xYhIS/BLk0CRzbjiqt7hp?= X-Forefront-PRVS: 03449D5DD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB537; 23:hQ+GTxeHUHPK2IjrdW9dz2tcc1DnuTU1pxDMrKVYPM?= =?us-ascii?Q?ZUACe8JXUem5kQvqES+U0YAMD3H1dp8VHlEF51Ou+iz1ZuRj7yJWP3WySMKw?= =?us-ascii?Q?3h/+r+UY1ws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f?= =?us-ascii?Q?M30U1c50aSF2Obbc0I52+viJaVzHTYwhVC0aR8KK0u1Q0bP24R/mCinIV7u4?= =?us-ascii?Q?NNvP69ZCo6fsthMAVPcYTAs6BNsuE9PkG2zPkhHBL+2AFUYVuv1MxoX9G046?= =?us-ascii?Q?nVn1acd93QaHAsEz3Pdtz9upStJ2JANnMf6seDSDkyxp7hHmlRZvuElVQlLZ?= =?us-ascii?Q?kkHVaxnaW5as4=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR04MB537; 6:NquCZEWTzlHr/pas66gjfYqWB+ThYDqWgcEZB+thYnH?= =?us-ascii?Q?veYwoWO6N2eU08LetUZ+WmNV96PnmHfe+HNwy6uHkqEcn9wu3uJIpR/zK+VP?= =?us-ascii?Q?9lmncoV9KL88xkj2z5QcDyaEzI4b96hONnbx17XmmiCYvz21OAAmYNQrRWwI?= =?us-ascii?Q?opVIYAqi+sYca99weQhH6VkkLCNq3WZ9cH11pmzmSAdbj7TAAdZGScoReroB?= =?us-ascii?Q?iPW+IoeWjGs7oJB6B08454BjtAmqJmpmH092vSUfRcEfWzwwmkUIR0M5g/9Q?= =?us-ascii?Q?Zhz7o/iWwEvsehIB5IHceu1Ux9oJuCVk+1DAtcGkMyWBUVHBe0Ripda8V2/E?= =?us-ascii?Q?Fc2lhwgPYZINonbQ6vIL4wX2w0XlO5GEUL9pAwWpeZlQJ/gz32J1foQ2oLs+?= =?us-ascii?Q?vilyH63f5mHTagUMSbYL8jq2fE2M81ZbxhPExYTGn/eFqva6ltFOwFkttg/h?= =?us-ascii?Q?kMTr697J6Yp+uHRrqH+6TbsZtpKxHOD3b6DN53rnzE9esHDvkxCVoVc6omzQ?= =?us-ascii?Q?PibBfRBynClckPE9N0MuLKESDSqs7EIWp4HLO92gjTdztcPDHc2ea8tB4k/H?= =?us-ascii?Q?30PAIrKFn7ibCiN/E5tnKSAxZNe5VJ0A3gfVFXFbNHstUv77686RQBxw1iep?= =?us-ascii?Q?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GIIqNDvGTfOVFhoKP/LmEq72H8JAptAbpPzrdo9hFXD60= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB537; 7:yEtAxA9oTdnlDQZziLPXckXYsAj6EXgsvCUgDWR5c7ZGnpQRfhzKp8ryR7aDHs9SWl1QKOnEOPa7Y+ZkV9hQWkR8kxevepjcK0elnENuDcsVf2v96bxf2PtEZx6dV6M84Y9cdZfmmhfWHAXvKD3+i2Yuwrsq/IemXvIyeZIlc15DjBOsaIjkhDttJk6Nf3hld/RudWis8ve9+ofQJUNYrwSqETI6jad7JXq+18Wp/zW1vtg/BwOURBCKnekpst2Q1uNnFh97Y7lTeUzseRRzDZ/kxjD+on9AKJd6e9fhCVSc8dXavydNZcqzV0RvEmXf20TA1u6xK13Xdh77aZgOMRW03/HfXbeK6mVIDQ+Bhd2xcQ23N0WUzbubCljkPFyHSIadwTe6HnGVCEFaxrIWC2Qvj2ACz2UhDIWSLaDH5JxaUCxI7HLqavhdZ/27Yu41l1UxjI+7UtqXVT8VKx7AUdyJHaWo2z5HWc+BuVNgXOPBBCCgbF1ha3fz447HWlp6xDqUOe91ngNVBBBHwYc3tFUWkNEMLZIqsq84pORVeX3uEi4omPULGGLca5LA5gZXqAfl0qrYoJZPtt85exHIBDFphcAjouu43bRnNFZAM+T7raRLd3tXSsPNGwnFsRJKY89clN+RwTP6fDwetsWe4a/UDmqOp0+Y73GSWQc2l4A3a000Pc6UCU47dGynaT/TjRWGF99tEwXJTG+lP3X7zCd2zl/VJb/broBMnbRDd+MZSG+pAqPMSAeEOnfI8ZfNM0kFEaEAYVb+RgOaz2au1nb81MTn0OHHCS7//JSrwvI= X-Microsoft-Exchange-Diagnostics: 1; CO1PR04MB537; 20:8S5JC605HOGuXZDrnyWpXUzC23kuo0YoSkcnjt3Le21OihDIIDfxTZdP3IQbalCUkBm3ew18HMlsWeNbToGO0j4uV2+7+eVEPpmw2vUCHfIoGfnMDY3qHl63Z5qFV2inrAa+SbtMk8U1D3Ln4/d5DKHdA1cER0SBoPJ510o18Zs= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 18:15:58.6832 (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: CO1PR04MB537 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 --- block/blk-mq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 2d21fbccc3a5..6268380c680f 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -228,6 +228,8 @@ static struct request *blk_mq_rq_ctx_init(struct blk_mq_alloc_data *data, struct blk_mq_tags *tags = blk_mq_tags_from_data(data); struct request *rq = tags->static_rqs[tag]; + rq->rq_flags = 0; + if (data->flags & BLK_MQ_REQ_INTERNAL) { rq->tag = -1; rq->internal_tag = tag; @@ -423,7 +425,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);