From patchwork Thu Jun 8 17:33:50 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: 9776161 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 7BB2C601C3 for ; Thu, 8 Jun 2017 17:34:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 645D92521E for ; Thu, 8 Jun 2017 17:34:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5917226E4D; Thu, 8 Jun 2017 17:34:35 +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 8755728418 for ; Thu, 8 Jun 2017 17:34:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751490AbdFHReT (ORCPT ); Thu, 8 Jun 2017 13:34:19 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:44588 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751499AbdFHReN (ORCPT ); Thu, 8 Jun 2017 13:34:13 -0400 X-IronPort-AV: E=Sophos;i="5.39,315,1493654400"; d="scan'208";a="23827510" Received: from mail-by2nam03lp0054.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.54]) by ob1.hgst.iphmx.com with ESMTP; 09 Jun 2017 01:34:06 +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=dunH3J7rgvYru+GGRN5cYz+wZ1WRJ1TuaJlY9RstHfvOVyfTjOLilIPfgWOD/v4ZNHI7DIEBRtpV1qFG+gLsNbQAXFHGe/yTxT9/HgKjMItt1TZadFY5VF4I0nXnK3UKVIm09R1W/bidtOT/oQmzwVyT8b+2DSFfYK8gGWE6a34= Received: from BN3PR0401CA0030.namprd04.prod.outlook.com (10.162.159.168) by CY1PR0401MB1468.namprd04.prod.outlook.com (10.161.212.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Thu, 8 Jun 2017 17:34:05 +0000 Received: from BN3NAM04FT036.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::206) by BN3PR0401CA0030.outlook.office365.com (2a01:111:e400:51d1::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Thu, 8 Jun 2017 17:34:04 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; kernel.dk; dkim=none (message not signed) header.d=none;kernel.dk; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 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 BN3NAM04FT036.mail.protection.outlook.com (10.152.93.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1143.11 via Frontend Transport; Thu, 8 Jun 2017 17:34:04 +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 11.69.51736.A8A89395; Thu, 8 Jun 2017 10:34:02 -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; Thu, 8 Jun 2017 10:33:58 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-11-59398a8a80aa Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 6B.E7.18148.68A89395; Thu, 8 Jun 2017 10:33:58 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" , Hannes Reinecke , "Omar Sandoval" , Ming Lei Subject: [PATCH v3 07/12] block: Add a comment above queue_lockdep_assert_held() Date: Thu, 8 Jun 2017 10:33:50 -0700 Message-ID: <20170608173355.25898-8-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170608173355.25898-1-bart.vanassche@sandisk.com> References: <20170608173355.25898-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrJLMWRmVeSWpSXmKPExsXCddJ5kW5Xl2Wkwc2dYhar7/azWSx4s5fN YuXqo0wWe29pWxya3MxkcfjeVRYHNo+Jze/YPS6fLfXYfbOBzeP9vqtsHuu3XGXx+LxJLoAt issmJTUnsyy1SN8ugSvj/0P/gv8cFZ3TOtgbGHeydzFyckgImEjc2vOQuYuRi0NIYCmTxILt DxkhnK2MEu9757HCVD3c+IIFIrGcUWLLt8VgCTYBI4lv72eygNgiAgoSPb9XsoEUMQtcYZRY e/k7G0hCWCBA4viFs2D7WARUJObdmskIYvMK2Et8mtjPBrFBXuLslp3MIDangIPEtZ1LwOJC QDV7G76DDZUQmMcqsffkZSaIZkG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age: 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)(39400400002)(39410400002)(39850400002)(39450400003)(39840400002)(39860400002)(2980300002)(438002)(199003)(189002)(9170700003)(110136004)(54906002)(47776003)(189998001)(48376002)(1076002)(72206003)(2906002)(4326008)(356003)(5660300001)(8676002)(86362001)(76176999)(38730400002)(77096006)(36756003)(305945005)(50986999)(478600001)(33646002)(2950100002)(6666003)(50226002)(5003940100001)(6916009)(8936002)(53936002)(81166006); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0401MB1468; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT036; 1:3ofuVuPo5CWiPe1f1PZWR+seWRSzMhCm4fUMZIQCYzM9qqAe7adqpOieldS/6Xw4lkhuLz2hfCIrW/OE86UQGQjjaoLLibF2+tI9gEYvrXRg9dO9j+9owISPPe16FyKviSDWvIAhtGKKpXmT02pXNGH58dYsjoyxxwgZSRizjN5HNZ1HPPO2D3v2KjfnIKlPQ8x52mLL3lZL7QSyKH0BytjmhGolY8I6IFr6cpmP+xlF5F2tSQS4Tsfn1evGpM3bZcu36T0TkyWP/GL8YhSuGe+IJsNyf0CgzyM+rOWTPPfR50+Dhtrtx+gHLBWdN6z53FON/+6yGPJWzguz4QONQVjbxBDhmNcnEkfgpMzsUhiVxKcepd+djtwbU5o1y4AGfneIDJRZJfIKfvW/Ph5IFzB//mQA2ohRNqb+YsOyAgKuD0Ei7u0GGYRATuin2pfpolkFuoLyc1ODRD9QquUJC3QgB+O/ybHQOIDIcb5CxcYgMyKT0eTFsjvhOCuhaEuzxhR8ZXOSANGCUQ3Q4GoPYw== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR0401MB1468: X-MS-Office365-Filtering-Correlation-Id: 3800954c-928c-4657-5678-08d4ae948f21 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:CY1PR0401MB1468; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1468; 3:quMNIgQz+maKq4eez1BZ1Ca8xZcQG+cywnNVPOWykC7D2J3Hm9CRtPp8p8QeUaZOJhfyjp5WNCzRHvz/+hV1RIPzGbfaVwcKJwEkPOSW6yo3CHY3DimAF+oxxFiVEiYK5jU1aj2cWXXYFAyO2rZRPIvHLbAt94QB2tYJzV9gV9OFHzFaCyGWr7T3Czjn3t+uIJGR7GDcxV8EToh/LLKNPn81hrfgA+tQKdAXlPq1dhDpnr0ihVApQr4sgsVMZ/v6X3Yzljc6fRgbdDi05/0TefU6le9ugmca6kelt6vSjoUhdFNK3fjk5VkITEvcjooXFZZ5Li0mCRSTJEtRpVmBlHTeIZf2Cy0SP9wnyPYNrxko3z2vMcYtYABDoDK1CJgm4dWaJyGva5XPXhLL8/1kt4N5dsftNHqwHCE902wwJEDZrEHyPBoO+u8g8/F3RINFj6mUP0ldZccJK9ouf+hYf5WUg3a8M4uE3qPkcXLP/0bpPoQIfwCldrPxjP5iViUS X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1468; 25:+5/4hjzG1bgJ1NFwHBwdQBJc8ywCURD+ESWqRIOEj1dWQyO/RiePO/vZMAJFLYtQuSGWRv31bZo70KUwVaz2B3g+Qt0an67mEAoT0Xiu5BE0wVF7TGD/oLzYU6QlBM1i5TbuY7H/ZQuE9lbNpIa0RtGW27SuE8aPNuH8cvcz5RNdEZBNpJkJqxZnjl/rdKFCya+J70VBxmax+d0uttarwIy1yyKkoBACd1lBwqQ8NImFeJqNr4Iz+Dw0ldhyfUjK9uPqNNfANaiiCj5V2tv9hGKgpWstexZaEnABQ+asQQ8jDGEGgQBTGYAgutjip48vDYgnTCChxqKurzMF0i+Lw2uLp66t+EHT76wF1gVi1u7BCjaco36xl6ZbewgVyB4G/Lz/hgBnCs0I261+YHbzRMBTDABCAyaYkTlnjnY2u/4qKldLhkj38jOD64yutIg506XYKfUjAzbh7WPqrfCos0Bkt34f2Sd9R3TSzrU3biM=; 31:SAjkh7+MDfZeeYolxMCrTZwgSMcEUh7YHzqkFlDo80KlmYDqtAS+xiY3bfqnvR/m6dpBJSu8BQSw/1YQUoH5IWZfsrRktdsi2Yw6F8TeIcWVmKva7CR3imvbWsXSPgmyaKeZO4Fj5FbnIB+Ai0dFbSVMdKZSLO1vp3uKtIcigCmS9mnkdiMUbWQyNkhRJBA826H+tLUiQEWLs8IgEOGipB6lEy5Td9SbTjGllYsHUgAOCXKuLZAojDOuVne69rMJOqwDT+KPIMeCCfQst9jbhw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1468; 20:CMa/3g7dD5IbO7eUs44tHHAhqYxVlXySG4gB9eGcS6Yj0/LUaaauivyVdxcdHPo+vHhQid9Cf1eI0kLOUFcCAMnsFxrsHhfUnaQobiS4szGCeFuN2iaT86ZSgxjTpM+k6qlnyxvD8drEZZ4q9u0YR2Buv89gvnsOD9KpZV5K2bMwKD/dOwLeo5A3H/UHCsRIDDZImNd+xA+WIOki/QcMwq0Ohx8XPUUb8r9asZG1AvKsP31TFBZBLrhD2SpsLauY0cmF2LZkNRc5x1wPP05jL9Hnp1rL2euDlEETZ0WKs3Kl8H9/BiE+7fSCRKfhO9AAjSrc59wtiLP9k4GoXRJpx2UyY3C+p0Tacn7FX5G1o05nNXfDxbxrB+NsI12BRt+wAMcvU2niKbkMo841pZ7PPTdytZhEJK7NhAEywsJNUE3pp1x+bxRRlPIa7yEMJA/5LhRKtdQ+Bu2x0tHnCyYi42v+1QM+5owwdBSkjPFZKkvfYLIH4H83Y4whcyW4mP8K 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)(8121501046)(5005006)(13018025)(13016025)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93004095)(6055026)(6041248)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0401MB1468; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0401MB1468; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0401MB1468; 4:ZtDs98nY5+ISONXbl1RxXVsO6lBJkWW+ZdwIUh5D?= =?us-ascii?Q?F5gMiNeKwXsz0PV/a1Huefw+SRAdIKLLR19CYl6sZR+Ml6tGRmDvNn9SEX3N?= =?us-ascii?Q?rhZyTVZs+nbzG5JXsvwRubBMqZdg5Rciw997gedkV+ZVoFYTTrS8I1CtQepX?= =?us-ascii?Q?UyRm1bTn6xsSPPcyPJ3p3+NueZuX9zJc3GrLQzXStUl1RcmhUnG9ZIqdADtl?= =?us-ascii?Q?5SR01soxTzS43oG1zX2+tytQT7KvRGGId1U1ijpWz2bCtHt3prjfbCiGSMPJ?= =?us-ascii?Q?EtunFnikDwCME/BT/wKH0aBjAtp9D7VeN4SzbPsZiicJDaDwtpjXDPTU+Elt?= =?us-ascii?Q?UgdbxMNrK9F4Yg9wk29RyMCLgUDxl/aQIdLBoU6denraOUNMnkODjdWj0Wyu?= =?us-ascii?Q?9zGqZY3rpbRcJbpiGQyvqSkKimizz4WjdsijsCYgX+MTmEFruSnaRMl50bEx?= =?us-ascii?Q?qEwjsAOTpm8p63suAfAOEUkve0KErU3z6xb5AZ+ci+0/M3eIkdC2FzikFzXE?= =?us-ascii?Q?kN5k+CbQHIHt9CE2Q2pQc7zJrEEkNSZj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8palVfGq16aorOrdYXdO05PdvBxzvc2u/MzCAqouL76Ntnya+y0CjF4ibS+wAVh/7OBBHe4+qeSZZ0OS3AZNuZQTZOSZvJLn+c84FBQOCn3Kn09il/Qfb7ugJm60DZ4cEc7h+mtk7LGpkBz/g0505dqBAsF4Ki0NzGjH21PgKI896FZuNO5N6Lk8dfs0tkjz7ZgoiilsF7uAj5CHQeib6Tj+f0RQBlO07qR2qDX9W5AgF1MrtSX4LURLCMlGtwQw4SZ17/hApVOqbTDEXpV; 24:U7sf/qiudtITP/Du2sRq31JTJDMkcvGAxmPikXS2t5Glmn5UiyaYKAB0OHfvKsNYbz05S7YaZHNjX6bHfmlU93OIbR9qab+Tk0ODNUQb5/g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0401MB1468; 7:IUOHSlc8FQCK9MNUQ6Pd0l9JQSAARWacdjDGwvIznpyxNUErv4PLhvxLuY2krUppVMjmNavthBmWvmLd4Bejt2kXywVHz+6IrtODZnxE6Ab1Oa0H/POr4t8NHNwU3k67XrNeFRcsqsdkGpFW/36vG9OC8dy4dN3tPzPvZFbYjTQqAkPP6f5ubH/1tURMXPGNUy5VymyIpe/00ltB23iWrNEe54m8ZvQSnwfv/tuNBB+MggCkrmDE8bljicEI4eXolLP5ATomUAVrFd+5DpuuYQrvQXGQJ/P85K/98HkVn8+WbM4yg1k3uw+YnP6Vv1K0qdN6gE6MhdJ2mhLggrZjTg==; 20:7NZk3wM2jyAG0IWa5nQp2BGddyTT0DNQscRSF81io66vgD/f3eBO4oVPihOPbs5IpvPpgS06B+sUpjtLlwgiy3nVYyMUC9UT+n/tQF9rKOl04OM42rwaAc7srLo5QHaM9W1+FtGqeMFCZ760yJLVQIzDAn0mbU2wChtroLcFIV0= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 17:34:04.0020 (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: CY1PR0401MB1468 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)