From patchwork Wed Apr 26 18:37:23 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: 9701843 X-Patchwork-Delegate: snitzer@redhat.com 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 E76F76032C for ; Wed, 26 Apr 2017 18:38:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA740285EA for ; Wed, 26 Apr 2017 18:38:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF1C3285F2; Wed, 26 Apr 2017 18:38:46 +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.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 67826285EA for ; Wed, 26 Apr 2017 18:38:46 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 44152C218671; Wed, 26 Apr 2017 18:38:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 44152C218671 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=sandisk.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dm-devel-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 44152C218671 Authentication-Results: mx1.redhat.com; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="MF8yBIxy" Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2448E176B7; Wed, 26 Apr 2017 18:38:45 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id E689918521CD; Wed, 26 Apr 2017 18:38:44 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v3QIciPY015267 for ; Wed, 26 Apr 2017 14:38:44 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3BECF189C5; Wed, 26 Apr 2017 18:38:44 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx09.extmail.prod.ext.phx2.redhat.com [10.5.110.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 30B36189C7; Wed, 26 Apr 2017 18:38:44 +0000 (UTC) Received: from esa5.hgst.iphmx.com (unknown [216.71.153.144]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8CCE2D7142; Wed, 26 Apr 2017 18:38:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8CCE2D7142 Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=sandisk.com Authentication-Results: ext-mx09.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=Bart.VanAssche@sandisk.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 8CCE2D7142 X-IronPort-AV: E=Sophos;i="5.37,255,1488816000"; d="scan'208";a="13360485" Received: from mail-cys01nam02lp0048.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.48]) by ob1.hgst.iphmx.com with ESMTP; 27 Apr 2017 02:37:43 +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=HTjGW88ixAn40Cuk3IAGY/H/mMNugSOjETe8gTDxb5U=; b=MF8yBIxybb5CVM54xN8sl2O+6dilNQxAK0TUVtidI1owi/5AsC0bYOe//bFNN+MPIF6ad0h32v+RD+Kh0Rjq37dCqFH/21zl0abNow5K4/PNDpmUDCinRfUFkkkuGKH2cXZj4eoCEVD6u78MZZvjQzzsQGtrdF1XIZjH5xfaVls= Received: from BN6PR04CA0013.namprd04.prod.outlook.com (10.172.194.23) by BY2PR04MB886.namprd04.prod.outlook.com (10.141.218.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13; Wed, 26 Apr 2017 18:37:40 +0000 Received: from BN3NAM04FT004.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::207) by BN6PR04CA0013.outlook.office365.com (2603:10b6:404:cb::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1061.12 via Frontend Transport; Wed, 26 Apr 2017 18:37:39 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; 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 BN3NAM04FT004.mail.protection.outlook.com (10.152.92.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Wed, 26 Apr 2017 18:37:38 +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 4F.DD.29323.FE8E0095; Wed, 26 Apr 2017 11:37:35 -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, 26 Apr 2017 11:37:32 -0700 X-AuditID: 0ac94369-548749800000728b-bc-5900e8efc9c6 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 69.6C.18148.CE8E0095; Wed, 26 Apr 2017 11:37:32 -0700 (PDT) From: Bart Van Assche To: Mike Snitzer Date: Wed, 26 Apr 2017 11:37:23 -0700 Message-ID: <20170426183728.10821-9-bart.vanassche@sandisk.com> In-Reply-To: <20170426183728.10821-1-bart.vanassche@sandisk.com> References: <20170426183728.10821-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrOLMWRmVeSWpSXmKPExsXCddJ5ke77FwyRBnNOmVvsfTeb1WLBm71s Fm0bvzI6MHu833eVzWP9lqssAUxRXDYpqTmZZalF+nYJXBmz389jKdgrWHFlYz9bA+Nqvi5G Tg4JAROJbQ/62LoYuTiEBJYySXQun8AK4WxjlPh3+ws7TNWOPa+hEpsZJU48mMIIkmATMJL4 9n4mSxcjB4eIgKrErWkuIGFmgSyJF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gRAI8UnmKp AQAA 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)(39410400002)(39400400002)(39840400002)(39850400002)(39860400002)(39450400003)(2980300002)(438002)(189002)(199003)(9170700003)(47776003)(1076002)(8676002)(77096006)(4326008)(54906002)(2906002)(48376002)(50466002)(50986999)(76176999)(8936002)(36756003)(50226002)(189998001)(81166006)(356003)(86362001)(33646002)(106466001)(15650500001)(305945005)(110136004)(38730400002)(53936002)(2950100002)(6916009)(6666003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB886; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT004; 1:dTWEYxn1alwmRHRk3oinUiyXkg7RhGQRFWz8jZybemo/XltocwVUUyu16Tv/0xRB3wy5907DbhSqgdSxGKL0uH1240X2HDQbp14ddoC31KE1plE38A5DPDUnRp8szKRWAlzt3sz3/6TxshfPeGK7V7jwWPoXhX7RBWnR2o1dGSkvVSK4YvrePsQU0pxwdnzj6yO9hMgHJHN/rKCZHyUPLjCxe/GrPrvtiwwkyzFZXT7Z+OIcaKYpnL+vz6gx48pTCWzvJPKTOHK9QNbsKNSM0k3KeUbVpbWc6BpwhU7LSDPJF51Uxfl29fT94Ts9M42GJHmYEywZJh7ShjaZk4GtuMdaMyYiALMCsqDNOrKF8S7AAl8v+2Q5UVJx8k95vKRvLmLgIUzR7mDxT4N3nBA7KcqEKki/96P1i3ITBCf5QUOLf397XPB/eR3Iltz0PLpZjRYdopj7Vv++x3gFJgrt/oyfsGKBK1A+0uSSKX/rU6cI7YjJRczF9uPiq43q1OdB X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fc1e0760-31a1-48e0-b7ad-08d48cd35104 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR04MB886; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB886; 3:F767v9MEyRSbv6y867E60ixrPq7+hm20zdcMR38sRw08Uhs1CNbrwb5OucOqxNPruxvX7NJsjnEolNMfEvo8/Ts9P8+guJb09cF2q9M6e902UyuUdfK7jJYW311vl7rL44dYvgDawY8PimFzMhuf7whMIotag3H17nxWccAn9f1RUoW/VA4JrsUqgn1bi+RtxiUpx1qLP4NbfzM426/e4ZElTF3oYGDw45jAlgAd8l9DcnfHiBuVWc/v+3pAZcEp7kdSLT0iftsj7gwDPpVJ7drYIf9BZFRROZzZKrvRqPOFz2fQ1FRFf2WTpiZmuH+ivLVJ4OBX69kzhScSXrPEQsy2F5PObI4WE+Jx5Lznnt6AWHotz6gK6baZjzIu/MWgWye5T+2gZCEoa7efqirCK4hNhPWjEjoP8pymG3cV1lBWiMyLp/S3MBg2e6uqlKjOj3bPhcwSXQ+Yr0yEnxNCPc4dM34rHlcBMnPx/2xGCMS7LtO0SPUkSroSYGnrZhhbIbfajIKw83lEjz+UBj63gQ== X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB886; 25:Wx38b+rvOknz1KraXaobE7GZOQ2aHHFV3w4fKnur03DahCacn2gGKQASop04mvliomnGyifrr8c0c0DqrGVZ39imuvNC4nXYXMuteJGdyt/F7DX3ag4V0XR+tHbhz9sEX5GRnBIO3TnXG5yfK9+dPNemDwxGP+imQUp3H+A+N4ri7I+fkryxQlTz9R2uCK5fr/jPOezbApkPK0uYYndD7Orjje4IvSHAGuvErbxlg6a5ZfTdjX4M6sMA6rjugmBAFbYehiYeXigkaoUHfjG/HqAhtty1hdrfakv82J+B+AYtV0/UojzDIA6XrTgKouaZMcncduA/Dq4k41cegnichD+cgQ05MJoRiRsCCaK5FpYXr/77UzkbKQ6TUn3JqrCmbEOuNQjG/OtYo7rnvaKas/Tz2MGe/5ep5WxLM+VMG19DGQsRFzjTfJHc8hkWvO0fHToBYG2L8xD7uzozgByF/w==; 31:lO3LNpRxLokhdKQQQdVcfF05NifTKJbj0CCXT4ySqsYeJ21PtjsNAnxkU7ggw0FnvpRMb22FQW2gtURqfFlKImhL4SWKMU2YqBnEnar99I+jSd3eWP3S0wIjq2gZoUPBTyiibW6UG8mBOqTw0pux/m/RvTI3UQjaSEU5egI3+CsrYm5F32v5ztgiqJ0bcwMtOlSp3MlT937oIHqopQFvfbbdX8UlMEmm8Ta/MgTy63Uo+EM5JzFkd1tEirlJmLSnhKLBlgfhGOcdabaowpW4SX4TPzDN69JsbQ7DGKnio6E= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB886; 20:uOP4xlRZ0s+L4rxA38LNIdRxDzg4APhIGZtlOyn0DFGhOqTr3e533YDuKhrzj3QGerTDlV1atxwZHBMGxz5yXJzoQ7wu1yuFs+6RCaP1pkekTlUcflYsbA43g42W2XoZS/3TumpO4CFu6a3zlRsNKq6W4CIkTU2yps6cdviufKmzLiUujI0kDB9Ee7dIU3VwKJabDSk15LulwNFyy5GJ/CV2SW8wUOQmiXYTdaZj58gsWIq0iInzlIdDK58Ogb1DIR5tfgYMnEJIwWJcW9g0z0bsOkuZXQYSQNnpdzVpquoRpJP4lbsKJz0e4DUOwUSk0bsfysFY8F+Z3YsHkrbI7M4nMxW+hDNLLT9WbLiWrZSz7dvPwrR4jmZ/vqUJNTHvb2fsysy8xb1RV3Np7CDh92SjqKSd1lowHTf2kRYk9apzAyRz5PzlTiwH9OSu8oYhUlI3XXU5Raf1WjZ2n+5ccu7uWIKBkwkYVoNL5IM0ywOZuPeAbRzzppAMJcHbZn+2 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(3002001)(10201501046)(93006095)(93004095)(6055026)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BY2PR04MB886; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB886; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB886; 4:IAAjbnkp7UY58w74hzjtiaJYv/pAQ8ADYx6IJhgGVaJtz8vwhw010RIJavAqfDi0Sa3HUWi5wlu1EoKKnKtovcUBgNyaxZFaZWF2lXQZ+pDAedjmQnl1RDv/ZXtlqzTLLyq5uRmrw63L0lIdONhtE8pAom8rxxP8EmVnFRxFXriIzeuWZTZq9hS9OprjUiR2waYC8FM6c4a4lt9p80Ku2rnXE/lMVOuzVfrlsJIybmgJQWi5SXdPucDNgFbEjv6tvpSjjOj+GupQkVhlmOcu5Be8PhKMnUzoIJdnyRWrMkf551tbFHyWBPNtd6RBctqFFGwd+QsMeLPJ7NlckPke5W+Uf1qgXd0Zx5gbbvfTuyU6RcBNNrEA2plkJss3SuQ6IT7AC5OdeGqECbyKEq0pHWfzMkwkGvOf8RWs7eKTilm73cC4/Odp260qSgTtA1RsnG00uylG8LtYrEgF1u0oxnvmqbsObvdsTepNcE1+nWjsGW4glazaMTGfvW6AwHsFovv7HgURDtNhRg10zAQxJgJOkVfFYjL7zLn6iC1aDDrWKnZ/Z6dHq3blhxRqhzdGTNJulIw+T4ORgH/Nc9CXfHZPrnrLWx4Xat1djCOvqzlZjv4+HX6NALVQPHgGnPXvCf+uerBULCxEPvg7tFhtxKp5EGToLd0O0ohfHrx7vOtqsP+zbfCazkdC6FJggulL4nFB1yDXaHMNrYY7oHs4nSPC/bQMDcP75SZivWgEeng9OOr7pYexTSTBhxJq0XvBdCrisBWqnas/RLfYT8ky+ghBfSSBDlOGMOGvIWaVe+K6FCFIkaU1EpysyA9NVsGu X-Forefront-PRVS: 0289B6431E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR04MB886; 23:4Tf6BFT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adata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB886; 7:/MxZ+0czbYHf4UiDxAVzSKiyC4l+cwnO5JzMlwnid4b3SoTgE9rRlzq1SE00NbnQdlySZa/Jd3nRcyRi8tjYn0sbXCyaewibxtCg/Dcyzqxny1oenOomopJbeijRPYuQ1azeZKLuT5cHxbMeBQcr0IfeFMrh+YGGdltiik3OZemTXl6FIk6SlvpLsXaYLJgvT/Ly0gwMjPw1RmnZqd2LluzNfiJ7urswclK8NgUrcC5UGGHCx1snWYj+PvSMBC7nOGxZpG9AAa8fc/aMhWRvLk5XmaZ5K+u7zVR2vFOZK2rsDUp7LVx0WXFbnvaxJ06z+FP/C17MVoa11atqkwdz1Q==; 20:Ue+Lv/G2avQIKKxHRirt1DGKjJnqeFeYkeOjuY43DnOw2bPFkfdxx5cxAjKqn6YwQmprWiF7Qk12HE+uJ10RoOEUi+359ohBUQYLOipUFCySUt6ey7Ka+z0KDpJRI6CtsX71SkHgaZlN9tFpHXi+ZHou6KataN/5ryLL/Jse24k= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2017 18:37:38.3990 (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: BY2PR04MB886 X-Greylist: Delayed for 110:56:16 by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 26 Apr 2017 18:38:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 26 Apr 2017 18:38:13 +0000 (UTC) for IP:'216.71.153.144' DOMAIN:'[216.71.153.144]' HELO:'esa5.hgst.iphmx.com' FROM:'Bart.VanAssche@sandisk.com' RCPT:'' X-RedHat-NoPTR: 216.71.153.144 has sent a message and has no valid PTR record X-RedHat-Spam-Score: 1.192 * (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, RDNS_NONE, SPF_PASS) 216.71.153.144 [216.71.153.144] 216.71.153.144 [216.71.153.144] X-Scanned-By: MIMEDefang 2.78 on 10.5.110.38 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: dm-devel@redhat.com Cc: Bart Van Assche , dm-devel@redhat.com, Hannes Reinecke Subject: [dm-devel] [PATCH 08/13] dm: Verify suspend_locking assumptions at runtime X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Wed, 26 Apr 2017 18:38:45 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP Ensure that the assumptions about the caller holding suspend_lock are checked at runtime if lockdep is enabled. Signed-off-by: Bart Van Assche Cc: Hannes Reinecke Reviewed-by: Hannes Reinecke Reviewed-by: Hannes Reinecke --- drivers/md/dm-table.c | 4 ++++ drivers/md/dm.c | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 3ad16d9c9d5a..92dbc85af53a 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -1661,6 +1661,8 @@ static void suspend_targets(struct dm_table *t, enum suspend_mode mode) int i = t->num_targets; struct dm_target *ti = t->targets; + lockdep_assert_held(&t->md->suspend_lock); + while (i--) { switch (mode) { case PRESUSPEND: @@ -1708,6 +1710,8 @@ int dm_table_resume_targets(struct dm_table *t) { int i, r = 0; + lockdep_assert_held(&t->md->suspend_lock); + for (i = 0; i < t->num_targets; i++) { struct dm_target *ti = t->targets + i; diff --git a/drivers/md/dm.c b/drivers/md/dm.c index dfb75979e455..78706a04bab4 100644 --- a/drivers/md/dm.c +++ b/drivers/md/dm.c @@ -1686,11 +1686,10 @@ static void event_callback(void *context) wake_up(&md->eventq); } -/* - * Protected by md->suspend_lock obtained by dm_swap_table(). - */ static void __set_size(struct mapped_device *md, sector_t size) { + lockdep_assert_held(&md->suspend_lock); + set_capacity(md->disk, size); i_size_write(md->bdev->bd_inode, (loff_t)size << SECTOR_SHIFT); @@ -2140,8 +2139,6 @@ static void unlock_fs(struct mapped_device *md) * If __dm_suspend returns 0, the device is completely quiescent * now. There is no request-processing activity. All new requests * are being added to md->deferred list. - * - * Caller must hold md->suspend_lock */ static int __dm_suspend(struct mapped_device *md, struct dm_table *map, unsigned suspend_flags, long task_state, @@ -2357,6 +2354,8 @@ static void __dm_internal_suspend(struct mapped_device *md, unsigned suspend_fla { struct dm_table *map = NULL; + lockdep_assert_held(&md->suspend_lock); + if (md->internal_suspend_count++) return; /* nested internal suspend */