From patchwork Tue Jun 20 18:15:44 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: 9800089 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 59E5F600C5 for ; Tue, 20 Jun 2017 18:43:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59CCC206AC for ; Tue, 20 Jun 2017 18:43:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DDBC25E13; Tue, 20 Jun 2017 18:43:49 +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 B02B0206AC for ; Tue, 20 Jun 2017 18:43:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751128AbdFTSns (ORCPT ); Tue, 20 Jun 2017 14:43:48 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:55003 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751131AbdFTSnq (ORCPT ); Tue, 20 Jun 2017 14:43:46 -0400 X-IronPort-AV: E=Sophos;i="5.39,364,1493654400"; d="scan'208";a="27857707" Received: from mail-dm3nam03lp0024.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.24]) 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=4rVIFEMw4i4XmvJL6HOoX83h5oTpy6c8Z+hyntdi2Ks=; b=HAeOtEDon2h/oi/OpvkaLuH6JvETI8aQUnxEaaz8RcMvWSj8O30fgpI1bSjX0DN4gQ1ypCMiKaD/VG1lHkUiRA7FtSX/3W+RJeHUrmCbCoWFgoiBcENX/RtvLRKoxacjBaIM4oGNJ7tQqFoKhCcyb5Ce5qOB7XFfOmFbnQ7a4Lc= Received: from DM5PR04CA0063.namprd04.prod.outlook.com (10.172.183.153) by BLUPR04MB532.namprd04.prod.outlook.com (10.141.29.24) 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:16:00 +0000 Received: from CO1NAM04FT022.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::202) by DM5PR04CA0063.outlook.office365.com (2603:10b6:3:ef::25) 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:16:00 +0000 Authentication-Results: spf=fail (sender IP is 63.163.107.225) smtp.mailfrom=wdc.com; redhat.com; dkim=none (message not signed) header.d=none; redhat.com; 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 CO1NAM04FT022.mail.protection.outlook.com (10.152.90.167) 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:59 +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 65.50.03809.D5669495; Tue, 20 Jun 2017 11:15:57 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) 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-59-5949665d79c0 Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 73.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 07/12] block: Add a comment above queue_lockdep_assert_held() Date: Tue, 20 Jun 2017 11:15:44 -0700 Message-ID: <20170620181549.24903-8-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+NgFnrFLMWRmVeSWpSXmKPExsXCddJ5kW5smmekwat/Vhar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSujZ/cFtoKtnBW71z5iaWB8zt7FyMkhIWAicfDYCcYuRi4OIYGlTBLX ertYIZwdjBLtB1ezwFQ9XbqOHSKxnFFi3fkVTCAJNgE9iVPz9oHZIgIKEj2/V7KBFDELNDFJ tEz4wQiSEBYIkNi9cBYriM0ioCpx7dlmsKm8AtYSmw89gNogLzHtXS9YDaeAjcT7JafB4kJA NV+/3wcbKiGwilWi7VUXI0SzoMTJmU/A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ributedMessage: 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)(39850400002)(39400400002)(39410400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(9170700003)(105606002)(2906002)(50986999)(54906002)(5003940100001)(76176999)(38730400002)(110136004)(106466001)(6916009)(478600001)(53936002)(4326008)(33646002)(72206003)(36756003)(8936002)(50226002)(86362001)(2950100002)(575784001)(8676002)(85426001)(356003)(81166006)(6666003)(189998001)(47776003)(5660300001)(1076002)(50466002)(305945005)(77096006); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR04MB532; H:milsmgep14.sandisk.com; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT022; 1:PRRv1HnXzZ1wNTyf8EQu5+IM1UaZNHuzjs4jGipKapD1wPEumKHc1Fs6dWt5vqjN1Z97uSIBzvL0Dnmq4dRUhtZRCfP+qvocabY6Z6ChyWUwPWsPphRJFH+0jJcJjiBh0S8VtNI/dh6f3D1HN13MIkP24MZOf9kZOTLbsmWRRPUAG8cR16dYmNduleFyEwKxq5l6hM8WmT0wY+bnHDnClp/p6F1nXq0jphke3+ChB8QGovnKCEnd2BFCZrLhtxLCwcSAV8Ar/GG4XkSpAajm8hd8Mc+3v48Ztxu5xjg4sNspDjX/w0BUE5PrazjdaB5tck7mnZChUCPggscxwATZxct34XkeruVOjgWhryHfoZRv9xO2Z8NcO23i0qZtfty6/IuSKCQYN1CXZS1pWTeakwB/OGdJwRFl0gMDxHQ+df+0WBALYzhmnkerDVpSwDE2QOk9nw6/lveBFpeJzEKOPvG0M6eUtCKSgw9RamKdMhZ3iWD1gXU8jjs6d99CqoVkOEkNaNcn4xdEY0H6YR5FFNd3YXoiDg6vub8VoMdQhLruNdcN9b1CSsZ/4cNsEeJSdMk92H4m5bcM1ptpXlhoJvJKfZXxzC76kaWJSjzE6a4u5fa/qkZFtCjJFwYuu8AYbVOxQ/BUppXyyOSMLCKWTcetoGpr3DpwKihOPMlNlUUzyf16SAI9NAQ5ujJoeGC7f2kI2FjpFjdPgfd3biv1/fpyrTkJsk74eD6yRbVvRZ0= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a2ce33f7-6bea-4a11-ed32-08d4b808677b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:BLUPR04MB532; X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB532; 3:wVHl9F90LoVNr8bdkatrZUBvIw3X1wB2eRrcNfbcRx2vKYmSpJAGj2IXK61D4js4IHuDcK4pm3+iEKWSv4Zoq/trqH0Q1xvFzUTbx6fZv4JNd/1GPsxGifRhQbf3b9uCTF63bwSDveedUyvJdbkEAUqR2+s+TGF+dP6PZKdZdxvKOE3tqEFxRMogmpBlvxdrxaJXzIPzjsMP4Lj/Hd8sgwioc5AF/gNxdZUrEyytPTWJzair0EFd3jnnjDc6aRfTX1bPOBfn/1/jb+3DnlSsKfV3KmeapK4rJ7ksESz9pAkP+2ml3BG2+rHtcNTXkKm3NUg9hw4Io//3fng/uE9aUizrc4ENbF2KLpKV4S558TLg9dMRRWN4hX73JcoxOuacLPYUfeesoozs19qo4ayYc6jBrj3UFZk2CRKho7qU12JLd0ifGKYlGqNOD9mh3GamtyOCwh2h/2r8qRsLFhvZOtvnFLo+7rBriI2szbTZN+s= X-MS-TrafficTypeDiagnostic: BLUPR04MB532: X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB532; 25:7qJQ/OcJ4AnUawxE8i5TDnQcEGcOj7fPake8iNO0VIdV4uQYGFqbe8WyVDpnQwiVD/VCaHlBNtDkRgQ/ttd0bioY0ky/1K0Emqzn8MZeOon7JWoHid+s4/F/lHQvaravUQ9K8Y1xeWzPPvqTsPmNPxWnY2P9XHOB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iuz2c53AFZgRoO5AYVfNzGsO4LZi6BQRwuEe+9BVc9USue0AWB5B5Wxfk1wCpfl6tHj3BoDArf20aSUsqBihbw2lHZnh+E2rCv3rYEZD 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)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93003095)(6055026)(6041248)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR04MB532; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR04MB532; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB532; 4:EPEng0qmjcT9ITzkoPCqukweXodaOVR0pvTSYfbm5bt?= =?us-ascii?Q?/+XJrt3h4UKx3XwaI83DmULdk8sXH3KDoi4So/Y/WimDvBG4owSA0SNam/kz?= =?us-ascii?Q?YxWlzAHgCY0MciyTNnlOe9CtQ1dS3ODyWVX8RrOLX7PKbVTPjtH5/Mvo3Nn+?= =?us-ascii?Q?7ayUqCUscltc5AOBf6OHW4HKdfF6Dj3r3j3SIZdqUy59A6edB9jl459Slv/v?= =?us-ascii?Q?tRxaKwxLhEwNpfbqwmmiwpHrCrm24BCHLJdns3si4AwbOU6L/BNSHW3FOGOx?= =?us-ascii?Q?rDkvb19EXPJe3ENGkr9oiT0YTrwvZucMIE6Gwn9KXVoTL29nQTP66T3iG4X7?= =?us-ascii?Q?SdEoppbOV9X7vn+tyR3lFsIXw1QFL4MFvrA/3zl14y40aEm5gMrey3lsqxYi?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6oh0TMoAtUMQ?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 03449D5DD1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR04MB532; 23:clG/p5WvMpna+BZH58GfjOZqCQ1DEiSK+x1CLqQtlC?= =?us-ascii?Q?Zfk838bO/6jmMh7uMzocpK3dC/hcvXC7dDh082AN2iSajX+pbLDHAySUsX4z?= =?us-ascii?Q?mOJ+G0VjptObcoFf/Bk8GWOAr6HOwhfA++/y8nuUn23dkHG0Z9nKesmADJQU?= =?us-ascii?Q?e5vyaeEMlPzc52HApmtYo4y12Zbuf/CqbkMkUjtVyAkz9sAn84CpAGuAcOYA?= =?us-ascii?Q?8ol+TySi884/GeeEpJPh//B+EPph7fTqTDedM3ItS6QWf703tZR7OF/2sl1M?= =?us-ascii?Q?qxzq15lNwvEDHXp4wbGo2hpO/xuqBylF09Hk8oYYboNlaTC4HV08Xh8ME7q0?= =?us-ascii?Q?uar90mM3Qne9O1quFj0vb3FtHZ6q3j2jMGY431duppktJ6046f1rK+IAQmEX?= =?us-ascii?Q?q8VMhtUkAdJfvDWbbOXd0IbhN2+cxxciIah6Mcq/vEKssy92OXIZhW72+ZTc?= =?us-ascii?Q?n9iQ7hB96EYu0TWYdDLLIXu5JbTMjpvgkwsEKsLC8aE1F8D8ZcnkMFnUXJS1?= =?us-ascii?Q?01mfBPP3057x4x4ybP+nh2t6ZydlS9qcDQXww6ygqUSjQQr24zrm3qMcyUiF?= =?us-ascii?Q?pQ+zQ+D9NXX80iKbcFnykVanxC6m/sZBs2+TiC9jl1KipVw4bGJwWYne44jR?= =?us-ascii?Q?dgRwfaEHHT8WZS2W8LtyQQSmbWmQD2eA+N6XUG9IplABWJ9W5MNj2iLeUzQF?= =?us-ascii?Q?kRtvBDUYCyDqiga5gbFlL1XhU8WPe42bhVMAOUrRVYXNyIu+TF12sV9E2GmX?= =?us-ascii?Q?+atcXhrf7/aglZEJj+6UiZyRWVPF9npPJH71uSU/9rc1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artcKC6amWiW0YGfoKYCY64FrXgR7xzhUhtQphj5VOoPZWuU9Um7Ph+BVm6tslgN6yad7+YDlSD/4inWkb/pvbIQDM6n1Wiv1J+tTWSUM2ugZsbXFhuw8Wpzav2w/G0I= X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB532; 20:ldFjdpa/n89Cp8AdkUPON14ksTvk/nVTAtuOi79zCJ/5TCKx1HJCDW6j91PRpynPV3ZvspklLXnCZ56EQ+GyZGsNhQmsrPlH8Wur1PvKDuCT8pKKOQZsv6YoBi/GDSACOReINTzYVwqmVcafka1RyELc98ArdVsl4u1Wo/dXOEY= X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 18:15:59.4774 (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: BLUPR04MB532 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)