From patchwork Wed May 31 22:52:40 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: 9758473 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 67B1F60360 for ; Wed, 31 May 2017 22:53:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56F4A2766D for ; Wed, 31 May 2017 22:53:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 49DE0284D2; Wed, 31 May 2017 22:53:06 +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 C19EE2766D for ; Wed, 31 May 2017 22:53:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751202AbdEaWxF (ORCPT ); Wed, 31 May 2017 18:53:05 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:57823 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751041AbdEaWxA (ORCPT ); Wed, 31 May 2017 18:53:00 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="118884946" Received: from mail-by2nam01lp0181.outbound.protection.outlook.com (HELO NAM01-BY2-obe.outbound.protection.outlook.com) ([216.32.181.181]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 07:06:27 +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=2prkyR6nH6R3WDehA4btq9J8kPRqj1V1POb7qDmTQ7g=; b=MKGQyd11pKI39fQy/G8bYTlpyTH4oa40o/sTp5KnutRznp38j9ujIpodhlRzdFALsjKSJKmmP0kJMwG6qpexJZefJOCor6CEH4EX6d6byQJ1fRMP2eNSKmg1e+simPqOkmCqPDN4TEsL06Zig7yPlfdNEVJwjUrIMnXHwVHZOYE= Received: from CO2PR04CA013.namprd04.prod.outlook.com (10.141.240.141) by CY1PR0401MB0923.namprd04.prod.outlook.com (10.160.160.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 22:52:55 +0000 Received: from CO1NAM04FT013.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::207) by CO2PR04CA013.outlook.office365.com (2a01:111:e400:1428::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10 via Frontend Transport; Wed, 31 May 2017 22:52:54 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 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 CO1NAM04FT013.mail.protection.outlook.com (10.152.91.226) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Wed, 31 May 2017 22:52:54 +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 CF.DC.38445.5494F295; Wed, 31 May 2017 15:52:53 -0700 (PDT) Received: from milsmgip12.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; Wed, 31 May 2017 15:52:49 -0700 X-AuditID: 0ac94371-422569800000962d-31-592f49452c8a Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id DD.1F.18148.1494F295; Wed, 31 May 2017 15:52:49 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH v2 06/12] block: Add a comment above queue_lockdep_assert_held() Date: Wed, 31 May 2017 15:52:40 -0700 Message-ID: <20170531225246.26261-7-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170531225246.26261-1-bart.vanassche@sandisk.com> References: <20170531225246.26261-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOLMWRmVeSWpSXmKPExsXCddJ5ka6rp36kwfdmNYvVd/vZLBa82ctm sXL1USaLvbe0LQ5NbmayOHzvKosDm8fE5nfsHpfPlnrsvtnA5vF+31U2j/VbrrJ4fN4kF8AW xWWTkpqTWZZapG+XwJXx/6F/wX+Ois5pHewNjDvZuxg5OSQETCSW7P/O2MXIxSEksJRJYvrK 9+wQzjZGiQ3/N7LBVF2f08oCYgsJbGaUWLcvDcRmEzCS+PZ+JlhcREBBouf3SjaQZmaBK4wS ay9/B2sWFgiQuPFlNzOIzSKgKnFp5REmEJtXwF5i8ocGZogF8hJnt+wEszkFHCRWbz/BDrHM XmLTkcdQRyxildg9VRCiV1Di5MwnYIuZBSQkDr54wQxRry5xcsl8pgmMQrOQlM1CUraAkWkV o1huZk5xbnpqgaGJXnFiXkpmcbZecn7uJkZI8BfuYHx92/sQowAHoxIPr8BFvUgh1sSy4src Q4wSHMxKIry+avqRQrwpiZVVqUX58UWlOanFhxilOViUxHmzZKdGCAmkJ5akZqemFqQWwWSZ ODilGhj7NVVlGIXneEa82n2h8GzXEw7N7HiHP6q1b89cUzy1+sH72ErLSVXNL3OvPfmtvzTk 8jsmx+jVUmvi8nTdZ8/6yD9Hkvl3c1P8jKzdc1lYGov2BdmlS5UHbP+r0sorwLM5eK8RH3/T peVa77as4WVMVouXasxp1frH+Srnb32HcywD581b3UosxRmJhlrMRcWJAOTZncx6AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrBJMWRmVeSWpSXmKPExsXCtZEjRdfRUz/S4GqDuMXqu/1sFgd/tjFa LHizl81i5eqjTBZ7b2lbHJrczGRx+N5VFgd2j4nN79g9Lp8t9dh9s4HN4/2+q2we09acZ/JY v+Uqi8fnTXIB7FFcNimpOZllqUX6dglcGf8f+hf856jonNbB3sC4k72LkZNDQsBE4vqcVpYu Ri4OIYGNjBJ/G+aygSTYBIwkvr2fyQJiiwgoSPT8XskGUsQscINR4s6UqWBFwgIBEje+7GYG sVkEVCUurTzCBGLzCthLfP77lwlig7zE2S07wWo4BRwkVm8/AbZZCKhm05HHbBMYuRcwMqxi FMvNzCnOTc8sMDTSK07MS8ksztZLzs/dxAgOG86oHYzXJ5ofYmTi4JRqYOTtdvU+/rH2xATT 8yLG7z8uOH35VLzE2hWvjVfd3m631q/rXEWpcvjC1QfYCl/dYn2f6DOV3WOdnuhP/ad/GZ03 /r8u3VzhuWMt465N1VkP4vLiwm0l03WOdPa7OFzoPLls3ZkInXohtvgP/NZsukcMt+9vsju5 54BC3aajJt9cTyStZJpr9V+JpTgj0VCLuag4EQD7Bk1RywEAAA== MIME-Version: 1.0 X-EOPAttributedMessage: 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)(39410400002)(39400400002)(39850400002)(39840400002)(39450400003)(39860400002)(2980300002)(438002)(9170700003)(72206003)(5660300001)(106466001)(36756003)(2950100002)(2906002)(6916009)(6666003)(77096006)(305945005)(1076002)(81166006)(356003)(86362001)(110136004)(478600001)(189998001)(48376002)(38730400002)(47776003)(8676002)(50466002)(8936002)(50986999)(33646002)(76176999)(53936002)(5003940100001)(4326008)(54906002)(50226002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0401MB0923; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT013; 1:nc37JzQw52TM99Qu1qJ0zqzaDKOSxWqjiOMTAVWFhTk0cPa8wCfyeEC7jP1TdpDFljAxyoJ/+kpR75YeXxPaQer+K/PPmOVCON9N5GMYdN410vug6PLc+2HqsnC3FxPdzXOnXpTDRq5klyw3ZYV3VEljDCqmy8rYixmYKvRVWrlAtMZIajSt4qOtnQjjWlvXKXt4gLRFUzGf+4OrEnu1ejZXSCUyU6irfxrWu5oy+JzcPzkgesNGdu+qID3NTBifne+QPHgqlFwJO0U7oQXZxBownmb3T3J0/irTWYixriJmsCeo4eRpnOXk2yIxg17GzedvepS1RZ30FQycGRsDhxVIMIUsyB0z7cQ9SgmOBCntOwfifAOpZWtGikOKpMP3i52jvOq8hIkVGn0tJgBJpjBEsHWcIcRQdSe7bpSTpX4sEezWqPfidYhu67NuD6MOik+5d3MW1vIxbd9Ayd7g3OnhGyyQHoQdyO8NPTQZuF0/rji8ngysiC11hfPLc+srnk4QWKspx4T4s2kiT9qhxY06wRxcxAD7StW14stZTVdbj745l7O5RyKSFDofvSbVhBeeUTKFWn9yDepVVaLk8g== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0401MB0923: X-MS-Office365-Filtering-Correlation-Id: d192bf05-0370-42d7-2fd9-08d4a877c650 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CY1PR0401MB0923; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0923; 3:lVCLytrT45HR83YU70zmzQihwTdDb4wDiqihI1G6G91jYa8rq5vxpIaMxmSZz2Kwt8X9QCOWpx2ZENnJWTIYdnO39W0ll+6aRQm8L1cTBrWKrVW5b8GAFbHL4J+IDkPchhcSqV5lH/04u9KvxnLZrh5wQZ66vaV3TUH1IZnLkfEs0EpOYlfTtoZxYZVjV08tgltKbBxfPRtBEtvG16KL+JMWD77Q3o47O0XqQ/Ufjeblew4dz5CKPpKGrm62LXUvu9ts8n1WSmr0ZbdfSSC9qTd/JK3K5FD9euSlL+dWMdPLos4e48X8wuURXXAGsL2Uz6UYlu5Likv4xMOs+pRjy2rn/ujgLXHu1ed5PSnKOcDPRUUILilm+gSmSGq9smTQKFc4fUf4v6GtifTa+36sA5hKtOZoVMOHz9nnqwt/1JASk5rkjKPPsMlg6bZZX8giE0Ktf/mJeIe2gRpi5pLj/ADzZ30B+OJCwZWSZaWl96RRjKJ7zo+VAjyNZ8MLOqlzlbGx1mbECFtnqtww0VjnWg== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0923; 25:j/+n+TUzcpSMXuudCgKEkMXJt+ta7+qhF9JX7EpdIc/XLCzklfsaWcPk5pMEfC4DQMULaIla4fEkEGfDi7I9nGHrNEcUYK+TDMis4n6hQsehY8NFInLphduzxBa5S/EoitS7m7SoluKrpxu9qfO16pTD4Posz3e25G/f83i5pQtSNIZrAoYk7TfEIDr76leGCj8yz1aV5Mw40DiCr4kAyyTbvD6tbEgqMjLj9pE8FzCQTBIa/OfVAViqXkRzCddhIOsvlanuyf1tcw2pBaSUdCz9h/Uo9cIxqfYDU4A+uiBuySrzeYXMGPr42ID5DOWkruNivgUm3CP5i3oAzzY+CLfnib//82mhHVLGbJautRH7zxkG3na1DVuRzysTfKZJbquf6tlY//eJZCXr0nGncwcwOnGns4EcnlU3+Xgbsq95GU3+Am6SOff2evrbTy2T172CsErjsS5uXmvzF0hUpSbqHHOtM+YJzrxb6kiyhEM=; 31:blcmJ8BdXrYfWEtT39Dl9XKpGy6dcT6j/Z1yHwVvJ1jmZgj9CMWf4e3vfeGJRavoX6wceyyIZgfSU6uJAosjktQxkDg6TmY+P+EfLP6FU4cW4pFMHcp29V3UlsEgOQQeTHdaaGaRU1RccBWFqqAh9yLkv+bYMZD+jT97atwGhayZNeDGYKozJhekMduomhXzCQ9QPUJMxiBGKclJYGs6BJsL7SzswgoRAEKjkfPNJzLKWvxaoQ8OAK33Ra1uDwPWW/j/w6OpqTqyqBarB8sbVA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0923; 20:9HgkIujJi5ZBwbe8rtctCffw3jLPoiQzUgPI7xiiSYNovJ4yhMEdoXC7zI5iNmFwiv7f5MPn1le+L93DJSFmA0aADZBPHcy2/sHjKZiLFA3lIORTiw1Bp+cx+V/54k7rBISY1tkAwVqSmimvG2tbU7WmK+2OMOQBIyJTCEZpxcTvEgm2jv5DdwYi1+ggCJsuoi6F3yvvEsxSQ4fOXrScnoeg7ChQQx6lc/uYDxO3kukvRFqDXBgcEfz8Ic0i4oZ/CPVYrYw1Dve9nCr7jnH5khOcHiULX+V8Ov05FmjizyPyXN8WOW0+4xryyFwHhRRXlhRQ0LRNuZnefLbqr7cSfSD8I2nfnrShq7OCKWkyFxGCzAjzK0f+4g3pXMYoUFbXpf+De9/vtauCeXvyrrOPe2ES8ABrFWlsmW4OteNo5f/Hg6/4HKsbdM32q8BN6N4slCwXvNYOm1uYljJpuI/2BxW9ww4loj4iyMlpxx+IXUeN7M9QNThSqvTyCouzSKOr X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(100000703073)(100105400095)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:CY1PR0401MB0923; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:CY1PR0401MB0923; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB0923; 4:YC1oSni5mccxFmybJ6tLeIGaBRIOjOecygxuUur9?= =?us-ascii?Q?pxDfEvRbCLJmumCv5A29m1jZzEONSi4EV0f27SVQB6kNALI2O03Rjhlx83Zo?= =?us-ascii?Q?EGBG9DRU5rjgDfPJ1KXaFpdDOx3LAL1lTt2lLVTnB4RMjdSBhF1cffSj9S+8?= =?us-ascii?Q?snVRiOOriN8aFwzyPgz9jwB+dXfsFuj/iC4iOj93tZKWPO+FBfYzrtCbNNU1?= =?us-ascii?Q?ETLSqsVkuZBbmTJJwWp/16qKmxCTtOCxS4bg68HjW6dBonJFqRyPI9ACBrWQ?= =?us-ascii?Q?wtSAgcRuq9zMAFZ7GlfPb6BWZm/sYnpKxaSXOUeDRcOqF+g14yn5fywNF/ma?= =?us-ascii?Q?XHFgUFBMt3bZBlGB0ynZl6qfuf9kYGmbcTbs9iuF78tVcM+NIPZPF5GrEn62?= =?us-ascii?Q?uwCYkD7L1fAdZD0i4apex6wzTl9NjS0EwrtmSpxRuAY9TN9In+3nZxW/IUaT?= =?us-ascii?Q?OGW7iup79wtDtdpQ1v78yCBlpxsUhcj9lpeQHz1cVx8yVdD7XB1eA5QgbsCI?= =?us-ascii?Q?NtnEWRZThKft6AVu1MAC2UR0eH7JGrjbUX/22nGT0SyeNij2x4siL14wxlZp?= =?us-ascii?Q?XzCSZzhmptr4iNOrC3c6vIDBrP00Tx6UoyGe5Spq4mhPJ7xGkeKQ1LoiC6Vt?= =?us-ascii?Q?YhErw7POf+0KLn8olgdVIrB7NRJ+07tbqrTCQa6KDKtvtKxQsytcvzM9+sS4?= =?us-ascii?Q?6EPdLtuX2WZ6L6zfUdWPOHsp6b1ITi61ZcHRgOdm1gi9GgrHuBGZ2Qr9sqnR?= =?us-ascii?Q?jvI+pcTvy/XF4JaqnniRtT2t4LpWJVhgS1mdFwFSSxVUzmaofsX5o2XDd/Pr?= =?us-ascii?Q?vCZHC8SERJRKj+mCxt9oO0TvqauW1oWMBumYZy4gueD/FqYgIf5O1UbtoJXu?= =?us-ascii?Q?5+aNlIbZApdk4EDZI3WjOzc/owmVz0Jv4lC//LqkYw3OirmhlLUNU8cxUyIP?= =?us-ascii?Q?e1+vzOmQMMBVQ7oSfjLVPWANZmppW5DL+y2dWBSscSwPx6uc2UVMDGaCGWMT?= =?us-ascii?Q?9gKDnwHQSNYqDkXeyfq32joujt348Std4QAppHclFY6smZQ6fOn9VCm8ZaZG?= =?us-ascii?Q?xfVEOTPbwr2sRdhsCR97B0+Dn53YipqZBMpbRv2V+C9QecZFeMEPAaGIrcQu?= =?us-ascii?Q?W8X/UX2xXblORsIs0H0GSaGGl+lHxo2Z9SiZMQ/5eMVy2jZvjQ9jrWpSJquK?= =?us-ascii?Q?If+yiO1chkawghAjFIgKATIp4DQrmQQf/H3jQG5CxTAffVY0baQtbNdbbZHP?= =?us-ascii?Q?Bzbj6gyJzxny55Kn0MsdHbYhPT/k+pS7junRtbf2GcV2plf3Z5PYrfvfguxh?= =?us-ascii?Q?zw=3D=3D?= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB0923; 23:tDVmjpAg4+6hBL9XPpU1xacPoNwQEFErtuLe57t?= =?us-ascii?Q?Qn3iKKTcPrtlCWQzd1mFLjIgVGpXhoj3WGVxjCGrskOVtwU10Ro4nFxOfcQA?= =?us-ascii?Q?keAPDIjXeJqYiorVUFBbr4+AuQzRyl7v1Vr6Uxw1POG3AdE5uQoW/nkiWBQV?= =?us-ascii?Q?iuwt/ZtXR2VmNfD3R6MkBypx04ll5R72FwzONPVJPJMEXuRl1GnOnbac7sBt?= =?us-ascii?Q?VYTZTpCr7UhkGbll4/ZgIcUqhW4qSkKJIPDFwsjp+Xlu647BOsDh7je+IrLF?= =?us-ascii?Q?8D7B/Qyc4zojhfFzsGpJuL3UyDm9P12qq9YnNUIAlWU6jJN4EPM4rP+rU8em?= =?us-ascii?Q?7ushfO5mrNYCI9kCOIgotBDo7B0UpOWV1esZDzd9DSyO9Hyk1kF0v3gICbwf?= =?us-ascii?Q?lBGlSy0WJZWptq/WacxzFOTZQgs+4v38UGTEUKPS+yrqE6x12Whe4aYvyuaR?= =?us-ascii?Q?Qd6Xt2giWi741YpT2RBtA5hVcxomZthlRCIjDbeVUWsNIQrnwm6EwJCXCJ4S?= =?us-ascii?Q?tykYI02H4ZQeUtJ88VZGErrq3hEA9swPOjpxtUyACyjk8ypCsQnpznyxtnw3?= =?us-ascii?Q?PLArJLkYI3Ow4X8x7EPsM95LBEPxMxmXfkZZl9Tgvp/kZQ1PM2Uds1O0CrgF?= =?us-ascii?Q?8A1CsTT2ZHb8YntouphtP9yshk1zliKDjTroj7ZTFkN2HOvAxSSBf+XUR9ou?= =?us-ascii?Q?ckOi+bfgsfu+Lq5u/XLiarGS8EG1cZ0WV9trVb7eKcDMtlW0sf+JMN3k3r+x?= =?us-ascii?Q?dz2gF47V6YQUd/H3/XFPBUBjhv+o7Ie3VURPkJBRx27Q0qmv3qMImvenKxkR?= =?us-ascii?Q?fUu5m3FiT0U6f7FJCSeF7aHR7ou1WQGL/wCQmKoRvZWXQfKCeQ+687kjPjMV?= =?us-ascii?Q?dLA/3MFuxzn2n6WhNKV+D9XoMDBoPiwQGNxF200pNohx38XXt03Y1ajiCc80?= =?us-ascii?Q?6nU/aNk4EFA6X7CtBIf42g/vtvQvNtNEVuQjHsUxO7dOTadjCGXhfzreQVfI?= =?us-ascii?Q?pbd4lUESZSrcAXbNT0oV5XEct9jCqjLWUts9HylmEKK9FubeuKPUKSYhaSiL?= =?us-ascii?Q?7I9BBV7U=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0923; 6:1tfL13YMzkMzXwF8ztlRcYIUBD33AWi/Oq49dsPEm9sGr74Pd9sUfcb6uOmRGn7MDioTFRRddbz8W73V9VfXNP/OJpE8+riQRRrbUyVkgw6y2/5VqlgJ/xOutY9+mWT8SdMFB8ePo9mt6kGcmdvHTntVn8XhQwjNPFjfeOjI0kT20b68/R+m3wGikNqBhqAyC5fxLn+Cb1opRpu3yD18AqOql51vh7gMKHmZU50igctwwH632FL24zc+Pw0q9wjz4bsDrC860h0E3PN3V+rKWI6lke3s9iyvTqb/1dd1jeDDu6FPH0eDejJ3cK/LEf4J2XOH1u45rfJzPLznnkqMSGp1yOg581e91Hgg685AoOLmD+Px4/tEjw3CVRKxgdV3a0HWAytqQXxx3Y9ZJXzQ46WFhc2NSLv0JterY2+euWj/KVfG0bOQzRO5uMxgZlOHdzkQhEpz2Ev2OKUIZTk+SNjrxqKwL65B5Cv1W+sIlnuuTfLE9JUYhP77b8ym7oxkLb+eT4ZPThUhGLfx1D242/escGV9FggjfZrYH+YpJGc= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0923; 5:KA5aayp/mjKdqPx/gq1XCoTZyf0opp45SHYxB4FdnfiTrlok2WEl+3m2NrSCM7zwazrmInvzPyOD7+yAY1Q2K/Iemh0NTSFeAXOxBf499IQo3bs4YTWWiHhlI+fcroOsYHJCLdCep31+Sc1yk/Y4vSPAoI3+zF2mHmGMcCRmdwao6LHBs20nAdRPu6VgCc88fYzKg/Vknwzv+brwpkrh7/HOqn5ogbY7QUgaHwPT+9Nb0tzYen1WKdkPhcEiP01Rjel5o9va7VzExn1CA0TKJikjTAL9LWv2cfVreY32QAPcPGEg3BEx1At1Nyp9Jic/NYguYI0POdNPXmz93r7qRIPDHcvKs6C0EDlRLTXFDNAEZDKoRU04I9kzk5wYPADPsKJwTeBD4xziCQAdKp/lEVm4EbWOaD85jhDmi5xsfswN98WKXWPMoyI082B0zM2mKXQXCnG5EXCXuzYgbVKTwoc5rtBafTb9rCZsbNFWMdQSZTw9AQDvUaPMUdnr4tis; 24:+X48JlLtopw3ZP601hMjnEX5ewE9K3AypVyOLA/XbyZo2GeAtBut2qDIFVQ+uDEDLANp0TB3G0Q6NsWT6Ru9p4c5Vir+kyEmB/QCfcsYvJU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB0923; 7:F/r68AUk+7fGFW0H1laed+5tWTf+IP4Bolx4RDwn7+UJURo18fZyw9eQgL7zM+XFlEF+Hmzd63XFh6qQ5+2K3zjNpDNTmR9jEOLgkF8HM25oxQxV/oaFQ2kZPRMkvUlbxRRDCp/l4rIarMAgJLuZyQkZCuuv+BaDgUFFEsSkdjf+b0J2emsD9NVNdJviArZ+NodZlz1K41KHaMA4gyz5zGlGgQOhxbRScfoh5gr009GL60W/HQoW4rtWagq4XJTfgOwo+UehtDG24t9eltgoZSoDhxO2XsAdbMs8HpoPYk6eoKBc6S2GjJT7OycJLZaGJeNA6JvbEfS8Vsb9irKqhA==; 20:X22nYW6U378DvOeQ+g8ldIGkgWhq1FiOs1g8PAbuJGsbFJdNHX+fDRJ0NVvV2plLqwUIG928CocpcDzEAZzYXwpfgqK6ImYR4lqh06/VcLnkuXUO1+stngfjwB1+m4LYSbHX3/bGytTkQyH59BIpxvvVdiEl8XxWfNRYBlnjO2k= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 22:52:54.3738 (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: CY1PR0401MB0923 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 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 --- include/linux/blkdev.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index cbc0028290e4..1e73b4df13a9 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -634,6 +634,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)