From patchwork Mon Jun 19 22:07:56 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: 9797951 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 9A67D60381 for ; Mon, 19 Jun 2017 22:08:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 834F526C9B for ; Mon, 19 Jun 2017 22:08:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 716E327480; Mon, 19 Jun 2017 22:08:58 +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 EF4BB26C9B for ; Mon, 19 Jun 2017 22:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752671AbdFSWI4 (ORCPT ); Mon, 19 Jun 2017 18:08:56 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:40270 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582AbdFSWIT (ORCPT ); Mon, 19 Jun 2017 18:08:19 -0400 X-IronPort-AV: E=Sophos;i="5.39,363,1493654400"; d="scan'208";a="28188932" Received: from mail-bl2nam02lp0087.outbound.protection.outlook.com (HELO NAM02-BL2-obe.outbound.protection.outlook.com) ([207.46.163.87]) 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=4rVIFEMw4i4XmvJL6HOoX83h5oTpy6c8Z+hyntdi2Ks=; b=cJ3Fs6/TCj53MD5gCOSxQxo0aCVNhQJQV8lg+1TlFLZpu3OiDVHAhc5YFBWm0om8SEUaJfGDxCcjm9S8Hwv54dU1LKSIqK7QSrhDGEFblDBun69l+HUK0KeJworBEqD3STLJywOOf6Jrz3xFQ8WJOTKx/G7mwFUalZp3HIvZqQ0= Received: from BN6PR04CA0048.namprd04.prod.outlook.com (2603:10b6:405:3b::37) by DM2PR04MB558.namprd04.prod.outlook.com (2a01:111:e400:2430::19) 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 BN3NAM04FT009.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::203) by BN6PR04CA0048.outlook.office365.com (2603:10b6:405:3b::37) 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 BN3NAM04FT009.mail.protection.outlook.com (10.152.92.126) 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:14 +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 24.03.02805.D4B48495; Mon, 19 Jun 2017 15:08:13 -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; Mon, 19 Jun 2017 15:08:09 -0700 X-AuditID: 0ac94369-9c18398000000af5-33-59484b4d9caf Received: from exp-402881.sandisk.com.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id F7.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 07/12] block: Add a comment above queue_lockdep_assert_held() Date: Mon, 19 Jun 2017 15:07:56 -0700 Message-ID: <20170619220801.12557-8-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+NgFnrFLMWRmVeSWpSXmKPExsXCddJ5ka6vt0ekwbflmhar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSujZ/cFtoKtnBW71z5iaWB8zt7FyMkhIWAi0fXoJ1sXIxeHkMBSJomu Z5MYIZwdjBLtB5aywlQt7b7PCpFYySjx/t4pFpAEm4CexKl5+5hAbBEBBYme3yvBRjELNDFJ tEz4wQiSEBYIkFj5+h2YzSKgKjFzZSfYVF4Ba4lNnTOg7pCXmPauFyzOKWAj8X3yTrB6IaCa z+8ngJ0kIbCOVeJ940omiGZBiZMzn4BdwSwgIXHwxQtmiAZlifNrn7BNYBSahaRsFpKyBYxM qxjFcjNzinPTUwsMTfWKE/NSMouz9ZLzczcxQmIgcwfj3SfehxgFOBiVeHh/vHWPFGJNLCuu zD3EKMHBrCTC+0XKI1KINyWxsiq1KD++qDQntfgQozQHi5I47zmZqRFCAumJJanZqakFqUUw WSYOTqkGRrP1X06VhC467pW4SF1VU9bLd+KW9QGFVxcdeV7E+UXr9TFxsdd7f28t+6uZ3j5v q6vnx51rv60U2LT07vztsXs+XDhw+emxtFNe8iLTj8rfXWt71fZQmvP1DxHrV0scKEqefJvx b0DmhZrthtZ6L/Z1a13+6yP8Zu73PWWTJjQGVK9I3Gr+jFtAiaU4I9FQi7moOBEA4zX8jH0C AAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMJMWRmVeSWpSXmKPExsXCtZEjRdfT2yPSYME3VovVd/vZLA7+bGO0 uPTnC6PFgjd72SxWrj7KZLH3lrbFocnNTBaH711lceDwmNj8jt3j8tlSj903G9g83u+7yuYx bc15Jo/1W66yeHzeJOfRfqCbKYAjissmJTUnsyy1SN8ugSujZ/cFtoKtnBW71z5iaWB8zt7F yMkhIWAisbT7PmsXIxeHkMByRomupe+ZQBJsAnoSp+btA7NFBBQken6vZAMpYhZoYZLYs+4U WLewQIDEytfvGEFsFgFViZkrO1lBbF4Ba4n+k8vYIDbIS0x71wsW5xSwkfg+eSdYvRBQzef3 ExgnMHIvYGRYxSiWm5lTnJueWWBoqFecmJeSWZytl5yfu4kRHEyckTsYn040P8TIxMEp1cDo y6x0J2HS+48t3xq/crJGhbfpr57fGnLnyT6jW89Xxb6SzC3zPFUQ9PpE2v7THUGqqybMWLxf feONz9V6nVprxW/J2AnMDft84Wrr7js7d0hv02Le2lV05PeOCl/pj4+PTw3rKP32sl7LgjU5 KDIr4MHvOL3vuU4lQVzHCm82OR8/w/BX5IGEEktxRqKhFnNRcSIALmS+gNYBAAA= 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)(39860400002)(39840400002)(39400400002)(39410400002)(39450400003)(39850400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(33646002)(4326008)(50226002)(189998001)(72206003)(105606002)(38730400002)(106466001)(50466002)(85426001)(1076002)(478600001)(77096006)(50986999)(76176999)(110136004)(54906002)(53936002)(86362001)(575784001)(5003940100001)(47776003)(6666003)(6916009)(81166006)(8936002)(2950100002)(8676002)(356003)(36756003)(305945005)(2906002)(5660300001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR04MB558; H:milsmgep15.sandisk.com; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT009; 1:wacMnBFbDjdRAVjt9F1V92PtECkL6uTnL85ls3MYt5k7yYo2wONJBLYP+Fdhdm0Y1Hoet3NsGF82g0CB3AiJ+TUmE0cokpLI0aVsy9YQpzym4YIgjM2nxtv/mOOeSnUoWi8uqxnrrdIjl+Q1EbwMgKJg+0/S5GFRDZb+afAn1Qu43Vp2vQXwwb2nklLtmkYnyfpAOuBqfsxMZ3WatMW0c5MlnTev2bdKjiJdNnVmmUpuCYWthTNMjHpOikyif9RmGlYGwotwP8YCViqtjTWSBMUQ5VF4PVvaMqBfmEbj6nO8SkXunleGrjN4NbAw+qZav2Ju6R9+DM+MVw19mcZi5ptEw6jKXU0GfYZp0zK+Bke3xmQAIKS6Mx0qPspMycCarGVz5ZKPwJuFqk13Mo/8WrecScj7fZIa0ZmRbdYs1lsdQZ18vJQNUUjfkk4nu/YHptIG0FUqhhZQTX1K5PrPNebMCxaK6LVHoUIiCSuQWgT56KFnH0mYeYNdLusM4mUguV12H4sPE+HgTFMRfesG/A== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR04MB558: X-MS-Office365-Filtering-Correlation-Id: a2a68bef-e6ef-43b4-2c5d-08d4b75faf32 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR04MB558; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB558; 3:UK70JDxwQAzhH6UPwsJzQld5cYUviNeBJvzV3dZw44Fqaa0gFKIfQiQdrXymtVuS2sPf60NYDAW4h785h4Xs10TnQNO0DWwz2JUIByEKIpfphDXqio27NusUzsHgTK5ham57nHDyE0Ffz+rSe7mt+SqA5ta3gvqj5/JsYuoXd1aImnSUvzWU6Sd8dH9CR1wo//YuXlWmHhGv9WXVuzdtLmRhLCcMei5VxLOVWNGJ0JOnKCeThZ3qEB+NQamMl3YPY0B1Ln/locOkxYgfOQnRZq5Q9e8m2KnWtYLyD3sdMnML2al6U5RYEmOV+XblE33hrjiQapcNEjs3Byf5KyXW2caqAxH5Hbk3AQOME9vfMqsgZFqLhmCD8iGa8HAZ+PssIUIua0rDo4wkb9XtyEHbgOQGvQ/ZNoynBPUTfYkXGcgYhM+1PP6xeyLXC78KpEbxT98OhlyYK/AXzMWBHv6CDvaVoyxKSdpemBo1kwY8MqmhSfcrs7ItKuMX06SyyVZz X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB558; 25:CjEsKPCVbxCkmy3MaazX1lTTfH9aLqgrU7aWPIp9PjWX2qKnnrAkiz1h/WkbgNaphtWQ5bHV5usq9XjPSs3Ern/htb8c10+S0yhV7uETqc/k+23lTqm+brhn90ulctjaGuLwQQTav0CFKr+c8vThI4+5lXsVRIn8YwgrsMBUoQXYSS6V4wQ6TYxMbuI6rAgpQTftv6Q5cxcrEK4JCLRCF6YUmuio51jW8EcnRJh6q31nRVm5SNTIjGeboIb+rY9ow17jlDlxpaikC9fLLNhlrU/dftSwYccwi2z0acaKPsEZ5KGazWeM9kJig5A7RwnydcUME0HcfU5myjOZJHsfzUNtueAH2c/t0xM8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IrO9MiF+IZMiUqeBleRexWmi1tDNzGngTcaJVXrYP+/mcNQVQPos9C8kcC2aIjiMe67SK/w2dOrK7DhD5pxDLKm1fBdy6DolHXZRSjmi3/V109BTO6Zr6xSUrmUyAPb8j57mvSgKyIK4WIioCSmd89bU2nBKnnqLgqJALISDNcRg/wJ82zs4IEfATiDZKJcQvFYnu+fjxdtg06oj6PlOnLf232puJ8+I= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB558; 20:+eEMCk2wmLNxTrCI32/UBO4SO+OcNepcINHYjF5EiD7Vy37v6QwWwithJG89uL0HH9QfseDLzTg0N5jlT4nYjPfgNz4575JmWu8wzmF4N1KUcFGrkRAwiUz/2Vdr+MCUwbTqwCWCvytrlaS2f72Ekdur2oy6imH6VZEfB7f8GUsTs5nJBcf7URhszQd+LD35ol89XOuUYZYIIUN99oDnzBuVNBaKmQwndBV0bFJKh8SRXgDaNNixaC0BdRCNnQgJJrDC8Z5PlKMiykWc85ho6/T2uoUjhOEowCzQDiR8LbZtbljd55UBFNReiyA4nASRtFDrTuc48vY3z6dXfJaQx+1YD2IxG6C5yTHsmcbhF8m5NVCbhSZZHfeB13nvHcKR/JEuyTOTE6EoVel6knF2Qni/pFUa6k61NR6LK+/BmSBbinSpZpcP9HIkLhHOYDzwy6t90MVRhamFvj+ZT0f6RWoUu12UOs560CHPD/ynx5ihlS2N0yIHvxLHVi9/FC3E 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)(20161123562025)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR04MB558; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR04MB558; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB558; 4:QI2a80saZvCIJ3VBa8gN2o7S9wSkBO4NDqk8labz+Wy?= =?us-ascii?Q?HETyx26ni9J1XUFkmKNgKq2POUGTvLUGjF4Tgo2hY2xEpH4CMQZV6OG6a96/?= =?us-ascii?Q?WWwPcroK5RtcMGMD4G98ihsJ3PHU/n7wmWFeyzu9/4iM2Zg6BUYVqCzdqHFk?= =?us-ascii?Q?QnriVgxjEEZgbRv9VglUF2gIknSgFawSDC+DwkKksAydWRItNYdwdOv50hVH?= =?us-ascii?Q?mmu7hcgMOXIXxnNNznbD0P9T0F1jBno65NOTMAv4RqjVyif7NVPzwRwydab2?= =?us-ascii?Q?ilWFPNxDWpGECouznRXzD9jsohL7T8sy6UYrg8EfugcAQtjOf0+czo4zYuQH?= =?us-ascii?Q?G71J17xVFfk9CsZiEUAIIAb5dzvRxWn0mbghmeJldt2+/6zYdjUd0TtCnzyr?= =?us-ascii?Q?j9pOItDlCqw2q4WnTAKqq3MKoLGoEhEwSBZPmug0vhwNRfDstUWOWLakw85B?= =?us-ascii?Q?x6Dkoy0lkz3SKKR6fFfcrNUwUv65Dxd4XTRV/pMI59yg7UIfF30omwPQEi5C?= =?us-ascii?Q?Wks8P/rad6UqcrkUcPA+Y+Y450T/jB/YPCOBfcRoszdQDK+Nizm27JcFyCDI?= =?us-ascii?Q?cp1hm47/1kPSOaTwD38LFbF46AA43Kj3RKyI/R4JTVT98QyfdWUoGbRwH10H?= =?us-ascii?Q?+MNhmSnofM5ubHbcJ9OexyQwoRQLLdoD2yPXo5UH7gXQYoCYgE2OfmDbTl64?= =?us-ascii?Q?1qKa0g/LZwe4Pw90NGXhmcDomrhsT0ha5vmLxY/BNCwUt4Z79p8X0PNHrYQF?= =?us-ascii?Q?JsZ3fg82yaWQMxyUyg5hjqWMTh44gUUoBw9RaGdC5lBEauD+7hJRIkxoOOpo?= =?us-ascii?Q?UtX1MaN8wrwXhY4X6wDbWD6+0EY7DRY49B1BYR4rMwQdKgb5krjxg50oDRrV?= =?us-ascii?Q?U2V+k6doqIKDYFRY1Oxc5UZnHXrA29hN1saaOOagNKKWIV15Lwm0BxcrJ8bA?= =?us-ascii?Q?VAJw34dw/+Cxz6dZHEDcm5jqtwhWz5FndHw9DD92395ocSgCgx05WoJ71xei?= =?us-ascii?Q?hHUwvgmVUt23CZhz23lY6Y187DTo+Gs7BhT5MioLUE0hf6XjJPvq9Mn0avPe?= =?us-ascii?Q?1RsER365zZw/6ofOqPAyyD/3EzB8Xkn2rSr8K/0rHRfjGt2K1YJLu3gRTkKc?= =?us-ascii?Q?CuVfB2e88K82/orNGodmn2smIi1s215cdxtC/Fofu0OlHqyLpGMBEVflb1+4?= =?us-ascii?Q?KxjgdIWnMnfuvzfUnvKrHLOXVfCA5GMMFkS9dQEVmC94Z/dl1YjsSiJGvn2Y?= =?us-ascii?Q?84YtqK9c8FDc74YFdpoKbn0GkKZ3H/S1l9W7IgUIgNXcMrQbYpm5hTjj43g?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0343AC1D30 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB558; 23:UjsrYMTQA8mmDFJMun2Eiu3C6qNfj6xajK0WVlT9XX?= =?us-ascii?Q?v39NBxAmMz0+Tlj4NbA0+e+hqUQcoUz8NGHbjgVpUWKXgXmsB827h/wsUft3?= =?us-ascii?Q?4MxbdUDPueF3dOFzfB/Y6ukYB3Bdo9c7qfXwRoiGMugGfDVE8a1K+nA4zObb?= =?us-ascii?Q?lT5Q6gOA2k1GQlAab+Y3qqgvk+D7a64MbMgBWDuhGr0Oy9sHzJxAP0WdBeyO?= =?us-ascii?Q?plZi5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ymb?= =?us-ascii?Q?zPChGRatqv/VLC2NmR+C594J8avCDwuW8rg+RDxYaqOP2IMaIhIrvXR3MSIP?= =?us-ascii?Q?SZk8ntUiNDsT0=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB558; 6:vG4UIxXMmdgxwuPcdqry68QmXJJNHgiv+qO3BPDgvZ+?= =?us-ascii?Q?4ZnaSj/h6zTQpPzY3LNHqcKWwCrmW8+cA8gL+NAIbUDJHw6Mrrsxq+dhLAFh?= =?us-ascii?Q?jfIkCffC9qdjbtD9IJbK+TE10/pzS2yRQuQsxkgvAaQ8PSD59akUzQPxnRLF?= =?us-ascii?Q?eCPl+ZawhXkekQlNF+nQ+i7uMUWuf2KSFVf53tK3D53RePeECbg5ivKf8a7y?= =?us-ascii?Q?BTnTTGqrBq2YejVaCrEGfA2af+13MUshScPyW2NB+Pgp8LXvhRSnuLV9QxPd?= =?us-ascii?Q?nTjc5ydPEEzCtlvt1Gjbwl0IIimnva2bxyg5mGnnXJbDSrAe47YvbMziNzmS?= =?us-ascii?Q?e0cbmk3BJoaBhv5kuYiNIbM/JJSkd5gOFJRBczHueS95moeBG9APSBGrhrgv?= =?us-ascii?Q?T6iGzbGgF2NpTbwb6jsYHdxOuMkQP0PPz/70CFa/kuoBJBuFw63FqF8S9e3s?= =?us-ascii?Q?4RUWZRLf97CXJ5FAVDXWvByb16CthGGCyY1dtfT6X0xtmDBQ9QgG/918NMB+?= =?us-ascii?Q?x40jA2aqfLiI/sKJyYlyhNguzPKX6lKUkobXGAO/jU7dSn+qyWDVd0ME1uH6?= =?us-ascii?Q?fqRw2DT27qUnHj/dJJfvtH0CMcaRuw02ijcTvJiBGhGB5BcDwY2Nxi06IODs?= =?us-ascii?Q?u/XNuK722MGcDMsdY83h7gA8kaLkRVa3bYUbXhuDUz65swwGP4+jTLY/OkO/?= =?us-ascii?Q?+7gc0qyRpaMEyudEE2GnSJpchvGpAc/zqWphkNVq2ABrkqthuLxgYyyRUO1b?= =?us-ascii?Q?vzVNgPc72Kyix3vaT8NYTsX4x/U/NoqNb2yEjc39ZMAd8B3MDnFxeZHDGKZU?= =?us-ascii?Q?QWmi0cQf/dQKWPbl0WndfIo3fhD2wU/ZXxwBpLZkATyoBlnKSVaDR17T3O8m?= =?us-ascii?Q?ZKOuSuu1W2bqVEZz3aO/XkZ/MpRjUEEfM+5tUcpg5eKjYF7KRxv4ywRVmP3M?= =?us-ascii?Q?h0J2HMytZ4qpQF8Daj94lUoFLokqTlItYAmMCaTGu32jih5R56PUrMeV1vv1?= =?us-ascii?Q?feUGqEKIe/ofOk+xLGd7X?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB558; 5:petcuxPZ/na3t/Tbr/rYNr93e8hRnGfoC4y12Nmh/EnMu7Kh4FjIA/VPWjN7s1o0CUSdaZ/miiBd319dC7A0lZoR+v3augd1OLbH9OL6EeElyz6ucdes569h7hjhC8i3zXkZqpR7woiER8nLii9zGjKze+PKM6Lw6THFS/9eo1Uwy1N8kSKPDwRd4ploLIAerd/bTcqt9pY4tg02z23zsvAc2S2QdHocIUgY074O11a0UfUxzek8hp/xFHY3OH+eZszLeKc/aDtWXSHr9KS5dsLaYS4mJ9dqLRPd+INmrEchtcXMsmyzyWjBommfqXufL+APV11x8iWUNOcfSD6plHnxs1IYL2ia+o0woJmUSDVFnS3R3RuQk0Vi84l+aCTMV0NIeBI8czhcuJNTi8z7tioI0vGWAxj+sxZviUNJ4NEzGl+IZ6Up6+PqpAbKivCqiKPdvW1VyN4y7Ve8R6Hz9qbxxe42SBBpWN9FRh/Sl1LHiW6PH6VDLcAp1tOpvshp; 24:h5Jz8yf9vPidZ40nqKoJi0ftZCKpf0abtXnO1oNd0mY4x2kHc2R6FhIX0B95u2BPDXa6Nx43hdEd3D2O3lJ1p+uB0q/iAIi8sp8y9RSrdI4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB558; 7: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2017 22:08:14.9378 (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: DM2PR04MB558 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 Add a comment above the queue_lockdep_assert_held() macro that explains the purpose of the q->queue_lock test. Signed-off-by: Bart Van Assche Reviewed-by: Christoph Hellwig Cc: Hannes Reinecke Cc: Omar Sandoval Cc: Ming Lei Reviewed-by: Hannes Reinecke --- include/linux/blkdev.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index ff0ae83235ea..c00a6b99e77c 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -635,6 +635,13 @@ struct request_queue { (1 << QUEUE_FLAG_SAME_COMP) | \ (1 << QUEUE_FLAG_POLL)) +/* + * @q->queue_lock is set while a queue is being initialized. Since we know + * that no other threads access the queue object before @q->queue_lock has + * been set, it is safe to manipulate queue flags without holding the + * queue_lock if @q->queue_lock == NULL. See also blk_alloc_queue_node() and + * blk_init_allocated_queue(). + */ static inline void queue_lockdep_assert_held(struct request_queue *q) { if (q->queue_lock)