Received: by 10.223.164.202 with SMTP id h10csp5382990wrb; Tue, 21 Nov 2017 08:54:25 -0800 (PST) X-Google-Smtp-Source: AGs4zMZvDZbfUmXl6DZaOvEAovmZXXql4HMYN7e0lImPr8wULPkydncQD2vhR9I3tYbbgtQ58/PQ X-Received: by 10.159.198.9 with SMTP id f9mr18220496plo.74.1511283264945; Tue, 21 Nov 2017 08:54:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511283264; cv=none; d=google.com; s=arc-20160816; b=VaKe/1MCl71oodZCdc3YRK9APDaim+tNrQAeBBmf7VDlzGFqEoq7LhevN4Wx79lcC6 RV67YRhb48mv+JiUgSsWv8dWZ+KLhBBAvpDqsRjKqsH6hfxsqhcPfxiecp+i60XM18pG s34H5blb0Rb7MYxCvcfRAsrZ/Elc16haPme+LVHh3tIDF9P1mrRdTwUsBjZ/OHYgPz+R NRfhuVOh/DU0uYXvYeLoTypRHMyBwBnPBxIZXs+aSuH/NIeko+ivVuc8tKwNom9+FUij Og+EBFRC1ySX7GBsEPrMaWJMBEp/rcv/2YimY8B1hnEgo2S0/UZnNirOyx2WfBtx25xM fUmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :wdcipoutbound:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:dkim-signature:arc-authentication-results; bh=SA37ME8FGQJBpSLMAiTili9RNrROoJ6QRq1qdp7qj9M=; b=qB0thQYaRCZF4/u94ZYO3pKuLn3qX/eK04ZC4sfrzjydiTlO9bBf23Z/EHh56im43m N/WxH7QINpWQl1nBuhNuL7e5cYcn8Dwhg75133DuOOixXkj0gQCriZ5EI2aclJpLiaZO Ov1zyl0Z5npkmLSwn8vpjjJizDNjqvRBZWaDAIMNl5N8mbjn0A3JM54V00GvOSKfVChZ kpV0MHheSfbBhBxJbuYX2KRu8ylZPo16DI1PaB/cGl8Tek+uvswNXfr9gxZ7mzl4L9cm dQwLEO9ubniUYs1uxzfp8fZ/2bfgxxNjtiQ44eHo2Udsqp1bJ897OMSuDc9l9NK/nfGN GQdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=ntVmB0Ab; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=Ri6cCsrt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i187si12345716pfc.213.2017.11.21.08.54.13; Tue, 21 Nov 2017 08:54:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=ntVmB0Ab; dkim=pass header.i=@sharedspace.onmicrosoft.com header.s=selector1-wdc-com header.b=Ri6cCsrt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751374AbdKUQxY (ORCPT + 75 others); Tue, 21 Nov 2017 11:53:24 -0500 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:48464 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751154AbdKUQxW (ORCPT ); Tue, 21 Nov 2017 11:53:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1511283202; x=1542819202; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=SA37ME8FGQJBpSLMAiTili9RNrROoJ6QRq1qdp7qj9M=; b=ntVmB0AbECfG9JDYQ5l1cUA18rap65pe8mD63JDRVwduVmCq/cI5mLNQ b2uYq8YpKs9l2yFS/cb6rBVs+5/hSHcnmLz7cpj3DW0k9mW9AbX09bfvq SPTx9X6WJa2STqOPpNQxGQaI/nVGdfRwKSJ4T0DHbfYPpT6/S/95pbrcV wuEV2vs5/AoOCZLT2EyTnGXtSTKtPtnDkTAigXBqw364crJ/p9Fny78rY EH1fQJb8bS4s/TVNC5KBOiWtTJlLppmEGIInW1pbXINj4QjOU1iVWxg6m 1LjHoCmvg6lM/K9EJOnETKDsT39DcT2+QY+5GAVAyF1Y/5f/mC7jtJ5eS w==; X-IronPort-AV: E=Sophos;i="5.44,432,1505750400"; d="scan'208";a="63349732" Received: from mail-bn3nam01lp0179.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.179]) by ob1.hgst.iphmx.com with ESMTP; 22 Nov 2017 00:53:20 +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=SA37ME8FGQJBpSLMAiTili9RNrROoJ6QRq1qdp7qj9M=; b=Ri6cCsrtaV4Pxgwgn2uGPLMlFXyqP8rX7lsCxCjTOmS8IPbCEJ7ObdTOIoagBZuIH/dNytA4WSt1GxrTdz7FgAoqk7JTgeujTmbW3WZa65swKWHpmpjZWosy4Av2ZQmOl9nyRSGITIPVsdD3P9q/isNMsaX3eKO7AUTqmdupvfk= Received: from CY1PR0401MB1536.namprd04.prod.outlook.com (10.163.19.154) by CY1PR0401MB1536.namprd04.prod.outlook.com (10.163.19.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.239.5; Tue, 21 Nov 2017 16:53:19 +0000 Received: from CY1PR0401MB1536.namprd04.prod.outlook.com ([10.163.19.154]) by CY1PR0401MB1536.namprd04.prod.outlook.com ([10.163.19.154]) with mapi id 15.20.0239.009; Tue, 21 Nov 2017 16:53:19 +0000 From: Bart Van Assche To: "jejb@linux.vnet.ibm.com" , "ptikhomirov@virtuozzo.com" , "martin.petersen@oracle.com" CC: "hch@lst.de" , "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devel@openvz.org" , "khorenko@virtuozzo.com" Subject: Re: [PATCH] scsi/eh: fix hang adding ehandler wakeups after decrementing host_busy Thread-Topic: [PATCH] scsi/eh: fix hang adding ehandler wakeups after decrementing host_busy Thread-Index: AQHTJkY4XaohUn75JkqG3J3A/BhUUaMfheiA Date: Tue, 21 Nov 2017 16:53:18 +0000 Message-ID: <1511283197.2692.13.camel@wdc.com> References: <20170905125424.15412-1-ptikhomirov@virtuozzo.com> In-Reply-To: <20170905125424.15412-1-ptikhomirov@virtuozzo.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Bart.VanAssche@wdc.com; x-originating-ip: [199.255.44.171] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;CY1PR0401MB1536;20:t1MKcVDE8NwxaTFr5yuvymsTnJvL3U8O6Waq6T2vcxe1Ig7P6TRoQAQVdB+BAdSlBrqIBo3gS3pH+nqQ4yp/1wBgKZSItQ+DRTblKj4l3I/EpNbuoxe1K6nw4A78Btp6wnyRRQ5Ze/eGABOSS6YPb5PfLMQCMDVgGpnbuwvk8r8= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 87859e90-27be-4bd1-8386-08d531005e06 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603258);SRVR:CY1PR0401MB1536; x-ms-traffictypediagnostic: CY1PR0401MB1536: wdcipoutbound: EOP-TRUE x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3231022)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123562025)(20161123555025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY1PR0401MB1536;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY1PR0401MB1536; x-forefront-prvs: 049897979A x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(346002)(376002)(24454002)(51444003)(199003)(377424004)(189002)(110136005)(8936002)(189998001)(86362001)(77096006)(14454004)(6486002)(6506006)(97736004)(5660300001)(106356001)(2950100002)(105586002)(6246003)(53936002)(25786009)(4326008)(6436002)(2900100001)(229853002)(33646002)(68736007)(6512007)(478600001)(72206003)(2201001)(99286004)(3280700002)(3846002)(6116002)(102836003)(7736002)(305945005)(50986999)(76176999)(54356999)(3660700001)(2906002)(103116003)(36756003)(66066001)(316002)(2501003)(101416001)(54906003)(8676002)(81166006)(81156014);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0401MB1536;H:CY1PR0401MB1536.namprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87859e90-27be-4bd1-8386-08d531005e06 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2017 16:53:18.8945 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0401MB1536 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHVlLCAyMDE3LTA5LTA1IGF0IDE1OjU0ICswMzAwLCBQYXZlbCBUaWtob21pcm92IHdyb3Rl Og0KPiBkaWZmIC0tZ2l0IGEvZHJpdmVycy9zY3NpL3Njc2lfbGliLmMgYi9kcml2ZXJzL3Njc2kv c2NzaV9saWIuYw0KPiBpbmRleCBmNjA5N2I4OWQ1ZDMuLjZjOTkyMjFkNjBhYSAxMDA2NDQNCj4g LS0tIGEvZHJpdmVycy9zY3NpL3Njc2lfbGliLmMNCj4gKysrIGIvZHJpdmVycy9zY3NpL3Njc2lf bGliLmMNCj4gQEAgLTMyMCwxMiArMzIwLDExIEBAIHZvaWQgc2NzaV9kZXZpY2VfdW5idXN5KHN0 cnVjdCBzY3NpX2RldmljZSAqc2RldikNCj4gIAlpZiAoc3RhcmdldC0+Y2FuX3F1ZXVlID4gMCkN Cj4gIAkJYXRvbWljX2RlYygmc3RhcmdldC0+dGFyZ2V0X2J1c3kpOw0KPiAgDQo+ICsJc3Bpbl9s b2NrX2lycXNhdmUoc2hvc3QtPmhvc3RfbG9jaywgZmxhZ3MpOw0KPiAgCWlmICh1bmxpa2VseShz Y3NpX2hvc3RfaW5fcmVjb3Zlcnkoc2hvc3QpICYmDQo+IC0JCSAgICAgKHNob3N0LT5ob3N0X2Zh aWxlZCB8fCBzaG9zdC0+aG9zdF9laF9zY2hlZHVsZWQpKSkgew0KPiAtCQlzcGluX2xvY2tfaXJx c2F2ZShzaG9zdC0+aG9zdF9sb2NrLCBmbGFncyk7DQo+ICsJCSAgICAgKHNob3N0LT5ob3N0X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QgcGF0aCB3 aWxsDQpoYXZlIGEgc2lnbmlmaWNhbnQgbmVnYXRpdmUgcGVyZm9ybWFuY2UgaW1wYWN0Lg0KDQpU aGFua3MsDQoNCkJhcnQu From 1584664381926146835@xxx Tue Nov 21 08:42:01 +0000 2017 X-GM-THRID: 1577704452897311330 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread