From patchwork Tue May 23 23:48:24 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: 9744461 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 B2A946037F for ; Tue, 23 May 2017 23:49:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A58AE28818 for ; Tue, 23 May 2017 23:49:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 99ED628854; Tue, 23 May 2017 23:49: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=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 0F7B428818 for ; Tue, 23 May 2017 23:49:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031426AbdEWXtp (ORCPT ); Tue, 23 May 2017 19:49:45 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:48616 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968172AbdEWXt0 (ORCPT ); Tue, 23 May 2017 19:49:26 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="21096433" Received: from mail-sn1nam01lp0116.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.116]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 07:49:08 +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=3toKk8tdKfj0tmjV109k1oFz06MPN7KbSxXchiRDwnE=; b=K9xFFVZfXVhrTketA6OFfY6Tir6LFQWbe8M+14Vp556uppI+vGlat6Vrv1ki83G8HuKmtfExDxqqRfbko3kyCAlrxDIH3QLkC6IZKpJyHmI/7apBOqnD+ky3GFEkCUSeViEDxbEUS/azxsiwhdULcZgYZSsddrZkE9u9+DyYFjo= Received: from BLUPR0401CA0030.namprd04.prod.outlook.com (10.162.114.168) by MWHPR04MB0511.namprd04.prod.outlook.com (10.173.49.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Tue, 23 May 2017 23:49:05 +0000 Received: from CO1NAM04FT016.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::207) by BLUPR0401CA0030.outlook.office365.com (2a01:111:e400:525a::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14 via Frontend Transport; Tue, 23 May 2017 23:49:04 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; suse.de; dkim=none (message not signed) header.d=none;suse.de; 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 CO1NAM04FT016.mail.protection.outlook.com (10.152.90.168) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1075.5 via Frontend Transport; Tue, 23 May 2017 23:49:04 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) by (Symantec Messaging Gateway) with SMTP id F6.D1.45291.D6AC4295; Tue, 23 May 2017 16:49:02 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 23 May 2017 16:48:58 -0700 X-AuditID: 0ac94369-ddfff7000001b0eb-f3-5924ca6dde40 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id B7.F2.18148.A6AC4295; Tue, 23 May 2017 16:48:58 -0700 (PDT) From: Bart Van Assche To: Nicholas Bellinger CC: , Bart Van Assche , Christoph Hellwig , Hannes Reinecke , David Disseldorp Subject: [PATCH 03/33] target: Fix transport_init_se_cmd() Date: Tue, 23 May 2017 16:48:24 -0700 Message-ID: <20170523234854.21452-4-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170523234854.21452-1-bart.vanassche@sandisk.com> References: <20170523234854.21452-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsXCddJ5kW7eKZVIgznTdS2+/p/OYrHgzV42 i5WrjzJZtK0+w2jRuvQtkwOrx/3tR5g8dt9sYPNYv+Uqi8fm09UenzfJBbBGcdmkpOZklqUW 6dslcGX8ecxX8IenYtuWO0wNjEu5uxg5OSQETCRePOli6WLk4hASOMAocXDDUSYIZxujxPFz uxlhqvYuesoGkdjIKPFjfwczSIJNwEji2/uZLCC2iICOxKy7L9hBipgFtjNKvP3cBZYQFrCS WDBvDlgDi4CqxIbWLWBxXgF7ia0dy9ghNshLnN2yE6yGU8BBYuWebUA2B9A2e4nL35VBZkoI TGKVeNM8kxGiV1Di5MwnYHOYBSQkDr54AdYrJKAucXLJfKYJjEKzkJTNQlK2gJFpFaNYbmZO cW56aoGhqV5xYl5KZnG2XnJ+7iZGSLBn7mC8+8T7EKMAB6MSD2+Cg0qkEGtiWXFl7iFGCQ5m JRHe5RuAQrwpiZVVqUX58UWlOanFhxilOViUxHnPyUyNEBJITyxJzU5NLUgtgskycXBKNTCW sr4U2CX08vecj0eXWWYVrH+5TZ5fuW+bJOO3Qwq7AlkysiyKTm61VRBsCLusHR9dtLSTVWe7 z8V2EbUTd5fdYj/Kvi/swf0LdjE31eOXv6jxYor9E7l19tfnVa8Wy/701zl7+fuLzzzM+XO0 1hfb/Q/iizeomu6X82tBe6C8BdPn3wf/ndRXYinOSDTUYi4qTgQAm8NGF3ICAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLJMWRmVeSWpSXmKPExsXCtZGTTTfrlEqkwcT7PBYHf7YxWnz9P53F YsGbvWwWK1cfZbJoW32G0aJ16VsmBzaP+9uPMHnsvtnA5jFtzXkmj/VbrrJ4bD5d7fF5k1wA WxSXTUpqTmZZapG+XQJXxp/HfAV/eCq2bbnD1MC4lLuLkZNDQsBEYu+ip2xdjFwcQgLrGSV+ 317ECpJgEzCS+PZ+JguILSKgIzHr7gt2kCJmgZ2MEuv/ngErEhawklgwbw4ziM0ioCqxoXUL UAMHB6+AvcSf5TYQC+Qlzm7ZCVbCKeAgsXLPNmaQEiGgksvflScwci9gZFjFKJabmVOcm55Z YGikV5yYl5JZnK2XnJ+7iRESIFE7GK9PND/EyMTBKdXAuKJwVshjN6+TCbyXrZ6neikrztig KszY8p/b4e8ci4hn4lWetydnnvvBmZLXHqeV+6nB8RWvzkTd5zw7bz1fP0ngZpJswKUVoTF3 tSxNtab7WaZoz+awyDjlGBSxV5AvK6TszBfjDzvTLR7fDNcMWKvQxr+T6cR3ubMnGEve31u+ qkfi0dd1SizFGYmGWsxFxYkA0qmDNsABAAA= 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)(39400400002)(39860400002)(39840400002)(39410400002)(39450400003)(39850400002)(2980300002)(438002)(189002)(199003)(51234002)(9170700003)(1076002)(50986999)(478600001)(72206003)(5003940100001)(189998001)(36756003)(33646002)(76176999)(4326008)(106466001)(356003)(6916009)(2906002)(86362001)(110136004)(53936002)(38730400002)(50466002)(54906002)(47776003)(8936002)(8676002)(81166006)(48376002)(5660300001)(2950100002)(50226002)(6666003)(305945005)(77096006); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR04MB0511; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT016; 1:AWKpSmsTmr0WyjuTvsuBpaOZywX8i8QhXXUEDQDOW2bCNIuAwLc47J2vMCm/5oROouWVu4aN3n8ZZQclCn6KHa4xRhTb+DPSq+mmXjOxFB2aCrvHZZoE08/XUoN6Wy9XZZmyVywULvE9vIXFjG8rGB801SHYJmVJ9DgeFKFAPn9VOO9EM3hFHyO63yo7xdntDIl+nGqwo6L6eelSSTrmomo5QlKeWddjXy7JHQTfc3aKRaXLbaU71v8+JmSt4IzlnnjNq3/3i1o4gir/OLKVxpEXGyotiaUdxbh3df9sGI/yWULMsAu8VQOSGJkeSAuaO0+fcRx/65gDwH0w5kd1CEm+RlsfWgcgwjGzctu68+2fEKlIlsF+qZjvQzZwNoemWERhhGoEccK+b7oDMrCs19dMWQ7yEwh+h4stbKaEkz8rpDjKL/RsNq7GvteD/+uia372nRYCjqGyZPnrE5ui7Qj+nGBA/u6e1oal1VY4wW+llCJ2FCuv0RCx0T3UiO5LdIxndZSPWdRx+WsROs2K/Mc7w0VGBMBxBqOaV9o153w= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR04MB0511: X-MS-Office365-Filtering-Correlation-Id: c0910905-3121-4c4f-9490-08d4a2364b83 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031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+Kh28KVvBSjYeV97Mck7nPFKXVBRrpfLY=; 31:bssZGKIBB/mGN63s3WBIFn3cI+gi/x3V1RVtqHhad+QhyBiCnCbkByqA02PsoSiQk2H6XRytgb2oi7sn2a6p8yzIX1Bpchcco/g/y4cBsz/MZjai+K1MNhTragG9jG9bBHhbJr2dpk9XrjKBGYpunSn3lDN22nHvrWTZ+1bG6iz1sz9ubhTJDYcor/X06UqpvB5fpLzJfTWmSeEc6YhPRL2vZh+PEyq7ym+J6kFAqATXYyt8csMmFeu34rorfkbYpiane6jnI2MrToiBUU2hbg== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0511; 20:Vh1Uf3LJQPzzUYBcGAtQaVAQt35uxFND63O5o70RfXD/iNCz+933BaBxdnyYdSjq2AgHKXb5EybpHEVEoqB1QNlcW1wWc93fc6po//aU/TivShUmCA/NJ1AkZXqEWCqsKFlQa00oQs0n7YAbRcenplBjmuTg2BFi/a03bjIKakis7kTSoYcCppSY3gp4TwxF7zVACqVXVlZmEAoLwA/8Z8zXnCM7D6a4o6eA4GfIYIyMGvMwmIM4z1O5wiBiOEi1otlxBeex4uLecZKT9CoH/Z6ZIy02r4GqZQTRrbBvsU7+YZsgFdfHrGrRYOQ+Xy/FGlMyT1S8ZwgMisozWJESVALx6MlcZ1TKxdgSN4cwefZpAtxJP8O/X32FXwDCLV2129FGdYectl+/1BQU2LSZimZmyMwLrXlP0zAAlfhlcQqox6JOrYzQwq+SQGcCJw6GSgOdvTPuoir2hmWpRLUpu4SmvtELIRr7fZl702bGSOQOiCT+0h4PC5RowMZNKsMl 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)(13018025)(8121501046)(13016025)(5005006)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148); SRVR:MWHPR04MB0511; BCL:0; PCL:0; RULEID:; SRVR:MWHPR04MB0511; X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0511; 4:2ORXnUsY9nRGlcBZt5+qVx0XH4RUAaMM01y4NPXHDuqAJF93Qs4xS8uV0irJc8hSyP+GFm3fyzNvPwitX5wOttNngjHxo9tEQD3RJs9vb73P95WjYY1mH/pWzI+wlsYGDmS2+WrRv7JpHSE+0wLoXF79GluNA8HQkNOqKYF9/sElCXDe/EH+1qQa/nAmAZISu3M3KiFAoHwuvLY3fmgN7B/fSDdRc9NMaqfEy+qjZZsc0NKNJXR8T3pk6uT4yagnJ6hpa0x2YHxAMUTA3PUMU6PixOK5ql90XVEMoqgP7gpCBeJIIbv587+pzmxSGxwhlniq35K8+/07jFOvEZ2cCo7qiJSAjws/Uun5RVpFbeEQHadTqmXoD4lVS98mE/f08PiDLoccSeukQ0iiikXGn1m8dPhcoEUUHAwPGjOGhrP8JKZGfmKFIX2qYmjEVL6Z9e8m6x8DDXlxg5lEaNM6pQ3S8YDXzjvcPzuL47PQuJIJQEzLefBNbQfHrksR5hOhNp3NVp+HWHKJEznRVgcztd3H0tZJAxBCYh1MHzzTMas+HqUzGcc+aKHz2oVE4RqLKe1iYTK9Q2kRdRegMNTtvSbE/1V2Wl+ad+Ikmb8uFRhhSQC86Yj48qheCP4u5itiC5mm+QCsOh1jrjeG9bqQo17PP0LDUuVyfFGzJBBGJirV2aUXKY0jCTlbHDTtV5r1sjc7dHafo6S6Oi3vC8VKmNYyA+YJZnB9VvnDf/Q5jmk64QaRByrF9Fr2b1d+KFWkVAY4kDAf5VAux+jUz3qHJqGoVrt/A1kJv8S64HdF8IgpaDS94xVoffX4GjFYhl84DSXR2PKND9DVsWVy9ylZJZdLVcEfz2M6vL0ONwlvENvPDUQFBm81FHda5fHzQVGz X-Forefront-PRVS: 0316567485 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR04MB0511; 23:5YE258ipkjug2wBeHToiJyHiF7m4m+O4fXFoxnQhU?= =?us-ascii?Q?N8FPXWkrdiielYHRJGpZgpWionYJ78u1h1CVgzi6y16NPr1hE9XbuLxYKLqK?= =?us-ascii?Q?FtTjKl/sW11juW45cRoxaWsKTwu2/difeNQBIw912Ppoe25+WedvvEWl8BMj?= =?us-ascii?Q?ZtXoOQhyWgoySy+rxoUnZwRtlhG4NOdOY66vzGIfrfnQ/7nXmc9HQepL3hR3?= =?us-ascii?Q?Y+2jKEZzeVhw5PdvY+SYjSLO4JonyKmNvlxvjuZRuO2UokTNxKpmWp8oZ/TL?= =?us-ascii?Q?IKenh42URiZNYkl2kNU+gEZmr2dHDSwng5nxs30HLxO9wcZaFXGxUD4L//EU?= =?us-ascii?Q?Vglmg9w3PhWZrc9RnCWT5hGji8CMifSn3PTY2e2pupmSdI8fSTPmnlQY5MbI?= =?us-ascii?Q?bezTsdZdCS/LEoJYOXgh7lhBQoUwM1SvNIU/yynCFj478MsvRC9AJhyeATaN?= =?us-ascii?Q?3tXTx4y0lvzY8v+6mA+ohkbMrXgbXzEySNEMtvY4yy/owt6Voccj8IUkTkUS?= =?us-ascii?Q?GJIW8E2b3GMUM9z62Pv/4l+0fOzCUxjHf3qUZtgdorKQj7VC6ajTgcrF+PuK?= =?us-ascii?Q?3B6J6NPszZ8vybOSVJfrLBWljbRBdyt36WJ1E9MloHyOBc7No4/we1OasFOs?= =?us-ascii?Q?Bge2NWyog2+0z68Tz+xxwuEYIbrPHanccWvA8abbpsiKyGQA0zttmYqTbfIy?= =?us-ascii?Q?F0ammlJFfszn0J4t4lrtlSWc7QA6L3dRoYcqA7liT2+4puoSC9EA/hdQJDi8?= =?us-ascii?Q?20DV+PCNW84UQhZNT85WLpnrDUyEra1qrC1YBghsA1wbgZ3CTRWqa2CtLUbV?= =?us-ascii?Q?+c+9bLfqFXuJZa2u8HumVF8DP++jLPxbavbZ+zKLEpAQ0dkvAlcxdE+vFY4e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zt/5q4iqYkzxQmKAfZfeMO1+av1tC/PnyolcnqC4vPiLMdqDpOVZKU0x+WGVoqflYPQOzTWO/L1tm0eTQZefn5FKskFiIVfTyqKMgeE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR04MB0511; 7:717iZqMs3AKuicd2UmMTniSN7LSr+hDwrLmfWpFwPjcGo9etfj7Nzk9QjlzGqxUUmHa+vlVK217iEEfy2XsQbo98vYI4MVUhKbRgbsvUxkaYWNKEh4wlt1/yZ03LUtpaPS9EHRuG7+wIqkzMkCIXfWByNgMvSPhEG2UBfH0QUCtuYZe9Ja8kTxTygntN5zLgCVcN8w6vuQn3twRAbqG13crH3obTVYbwX0JsmiDluz28LKptsgLZ9o95zgt3eEa1lLwknJFGxXj+36ule/0fa5dXeFu+5cBA94MyoP5UPo63gFBrSsAsu3SRFeyZDuEbn+unxmb72bmFXo+OtzYt5w==; 20:ySsnxS2P6aIcrO/RQw0MkwRir9n5AojAdvm+hVAyzNDajA3nzXjlLytGgo8IsmDOLjxbyPWkR10/9IpyYA+OLFGcxDsmJsBksWIorE7J0VfXrA2aBC+UHviYZ4RFGju28EhVr/8aJnp2UWhDYFIug9pDcuE4KA+tLFQbxoEc8bQ= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2017 23:49:04.1649 (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: MWHPR04MB0511 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Avoid that aborting a command before it has been submitted onto a workqueue triggers the following warning: INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 3 PID: 46 Comm: kworker/u8:1 Not tainted 4.12.0-rc2-dbg+ #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.0.0-prebuilt.qemu-project.org 04/01/2014 Workqueue: tmr-iblock target_tmr_work [target_core_mod] Call Trace: dump_stack+0x86/0xcf register_lock_class+0xe8/0x570 __lock_acquire+0xa1/0x11d0 lock_acquire+0x59/0x80 flush_work+0x42/0x2b0 __cancel_work_timer+0x10c/0x180 cancel_work_sync+0xb/0x10 core_tmr_lun_reset+0x352/0x740 [target_core_mod] target_tmr_work+0xd6/0x130 [target_core_mod] process_one_work+0x1ca/0x3f0 worker_thread+0x49/0x3b0 kthread+0x109/0x140 ret_from_fork+0x31/0x40 Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: David Disseldorp --- drivers/target/target_core_transport.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 37f57357d4a0..33bb2a16ce75 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -1223,6 +1223,7 @@ void transport_init_se_cmd( init_completion(&cmd->t_transport_stop_comp); init_completion(&cmd->cmd_wait_comp); spin_lock_init(&cmd->t_state_lock); + INIT_WORK(&cmd->work, NULL); kref_init(&cmd->cmd_kref); cmd->se_tfo = tfo;