Received: by 10.223.164.202 with SMTP id h10csp4867488wrb; Tue, 21 Nov 2017 00:42:01 -0800 (PST) X-Google-Smtp-Source: AGs4zMZ6yAzkXSEuVfkuMW1036sFrcICBCU70+TFgxHEDqdrFTmQ2dvDEZTJTgn/7jdeDZf82eRY X-Received: by 10.159.214.139 with SMTP id n11mr16113574plp.289.1511253721132; Tue, 21 Nov 2017 00:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511253721; cv=none; d=google.com; s=arc-20160816; b=bJY43qrpnBRa1g7sKwMMt7o5ncNfUsneeFI02XbtHHN5MdzzK1993stvGBlDdbzgpM e8TG6ZcBhl3QvFLfuhy1vM9OZA+u0TL4GCuikr3aFTSLcAk79WyrTXIL43eYvC1IgB6v IIDjMB7mO248ke386jkN70TZwXSTrOMzk5UWuK/c3cA19dwpC+6nnNaDCsWxMhATOr98 di8BIHG7AxX0H2Od0rwrHjiDIAGWQFxdeIH4xcxBOLyToLw4oGo8fbKgMUr/OWP9FY8p 0Obu9ryvAmVlg7/1Uv0ojD4sypu4xULYtBp5ibZO//tkoAvy+NtPLLUn7FCnICpgvGsl 3AQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=Z3TfFrHE1+CSVo9Jkeg7BF7UiOAQXw2MgOQdE7S1rH8=; b=CBa8XTu1mpCuKNvbBbDtMa5fk3VJ+Jg60OT2Ny5oF4gQUxB6y9/F82kUoqYopLkQp+ 7HGgpVkgu/Jv7OAJ4cMTgJJAe0oL5fdSGtDKfFd4KQD3KXPYCEoKZ1+kIsDv3yh7WDqo ljBPsYGSVkmivlMqYhI9YTxXKlzLo1ozL0z5xTcnNr7KjgQfjEEOI4E2YzMLP6ZnB73j fWKEjMZtxcGXth06wLTdfdHoVSCL1GuKvVdLrQNKFgSN554bt2XilVyLefaUaHl7mjcm l4vN7EnRdHkhb+FNdTQzVlzo2/RAEgYsTFqxtqYiWW/BjU3DvBk7AzhWrueNdROfX6A5 LjuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=P/Bin0Kb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12si4397887pls.722.2017.11.21.00.41.50; Tue, 21 Nov 2017 00:42:01 -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=pass header.i=@virtuozzo.com header.s=selector1 header.b=P/Bin0Kb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751725AbdKUIkF (ORCPT + 73 others); Tue, 21 Nov 2017 03:40:05 -0500 Received: from mail-db5eur01on0137.outbound.protection.outlook.com ([104.47.2.137]:36096 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751502AbdKUIkC (ORCPT ); Tue, 21 Nov 2017 03:40:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Z3TfFrHE1+CSVo9Jkeg7BF7UiOAQXw2MgOQdE7S1rH8=; b=P/Bin0Kbl1HyHS75+OD72fWY9PPiCNrOrO30qxieNhSnwa9lGx5tpccLMbWnoxG28CUF4MmchRl7xxNvn5ThGiPpqzTPKooIKn44qAltG3TZ30lf51Tnd2IBF1HBPTw3US6JeL47g2R4n0PjpIcdcE4dkFPtlaAt/Yo/71QhbB4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ptikhomirov@virtuozzo.com; Received: from [172.16.24.163] (195.214.232.6) by HE1PR08MB0971.eurprd08.prod.outlook.com (2a01:111:e400:c523::23) 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 08:39:58 +0000 Subject: Re: [PATCH] scsi/eh: fix hang adding ehandler wakeups after decrementing host_busy To: "James E . J . Bottomley" , "Martin K . Petersen" Cc: Christoph Hellwig , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Konstantin Khorenko , devel@openvz.org References: <20170905125424.15412-1-ptikhomirov@virtuozzo.com> From: Pavel Tikhomirov Message-ID: Date: Tue, 21 Nov 2017 11:39:55 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20170905125424.15412-1-ptikhomirov@virtuozzo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [195.214.232.6] X-ClientProxiedBy: HE1P191CA0024.EURP191.PROD.OUTLOOK.COM (2603:10a6:3:cf::34) To HE1PR08MB0971.eurprd08.prod.outlook.com (2a01:111:e400:c523::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 041e560a-0788-4901-fd5d-08d530bb7321 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(7168020)(4627115)(201703031133081)(201702281549075)(2017052603199);SRVR:HE1PR08MB0971; X-Microsoft-Exchange-Diagnostics: 1;H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xUltms0vQT2CnnROaRJ5b3VrgdJfuIWb/pT0LeC309EavwRAt2DRFcv0Cr33zpME/0G8ZDgj9cE6bwb/lyOHU0phBvmSOB6UT3HaPvjncwx2c+j6c1gO+svmeFClQFyGCACKFLw4//PfNHda+3cu/YvY5FuRs778c7WituwISwpfoIkusp7Ja/nOPVtOXXquLZPZq9Kqlk1ws8zyQ4t1biXZ9k9N2+H2mhT9/71PxcXjpl0q8PvZkMrsVLtOhWKqJQKruSxikYpioK9W30/5HU=;4:s7iS/fmWOrIYN0SepbyKvFynnsy2dYHD68o+4+7llXSYvHGyxjUrL5oeStCfbGNBrufT9tAXmmy/U62Jg6jMtmI/pFiyxAm3F0hk70qzNBBWBU11XKmqfJ0wWtkSZ0kL1VvrbsXiFfpFKF5d1fh4sGJUbGxva9X7U9iajj92u7h5R4nQRp7sP//g+XV4vlHoGN/10jpvX78wOY8BmLEE3rXEBijqpoZs8OlWpTttlpKMejBH8C1MVH/wks5OtXU+4QUJC8SUnHwy2Tz92pbwtg== 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)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:HE1PR08MB0971;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:HE1PR08MB0971; X-Forefront-PRVS: 049897979A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(6049001)(376002)(346002)(189002)(199003)(23676003)(67846002)(7736002)(305945005)(55236003)(230700001)(65956001)(316002)(31686004)(47776003)(189998001)(101416001)(229853002)(54906003)(8936002)(2950100002)(64126003)(25786009)(5660300001)(8676002)(65806001)(478600001)(16576012)(54356999)(76176999)(50986999)(3846002)(6116002)(83506002)(81166006)(81156014)(50466002)(68736007)(31696002)(86362001)(97736004)(58126008)(106356001)(66066001)(105586002)(77096006)(110136005)(4326008)(6486002)(36756003)(53936002)(65826007)(107886003)(33646002)(2906002)(16526018)(558084003)(6246003)(6666003);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR08MB0971;H:[172.16.24.163];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtIRTFQUjA4TUIwOTcxOzIzOlVhdFJwREJBaDcwNjFSbkV1Q0dvZmljRVlr?= =?utf-8?B?WXdXWndPbmp5Um1xeXdPdzhUY2hBUkRJQTZLRkM4aUMwUzRXZE1aWmdyRldY?= =?utf-8?B?TUEzYlB6M2ExMGF3R3RsU3h5ZHBiNG1sQTVlc0dVdGhLUkRqVm1VK2RuYkd1?= =?utf-8?B?dDJLUWJ0MFQ5Q29veGZ1RERpcEtVdTNsci9HQ3VXYXJPZWE1L0pxdEN6RkdP?= =?utf-8?B?Q05tVS9SZHllTXdpWUZFTER0Z0V0MHFGRXNyNlU4YS9jVVZkRHp6Tlp4a0Ri?= =?utf-8?B?Tzd2RW5pc1JDNUZFNGR5UXN5Y3YxK2VEVmIzTXJnbnVMSXdjU041MWNTRjN1?= =?utf-8?B?QzdOazZmMlEvZFR6WDlKcnJvc2IrWUYyQTBJT2crT0ZnUlJ0YVA1TEIvWFBP?= =?utf-8?B?anNFeDhWL05HWHZ4Zld2VytUMlhzZWM1M2w2MUxNMk5jT0Q5d1o1OVozQThh?= =?utf-8?B?Tjh6S1IwYW92cWZteDYxVk9FazByNE1YWDlDamRYdUpkb1NkNmVQYTFwNDFv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QQar611Qgk13SegP8RqOveSDdlc70J+VDL9Eo=;24:vkd737spNQ8Y+4gsudEBmFkCzvOqqNjYbl4Z7+ZBK2qFNhNdGF8GdbCp9fAyz3Pr8LH1P6GP9ZsMBqwFA7EDChEvINzJ7A2JGekrK2NTIzw=;7:k90DouqIXb12xwGjsTBvAeUIleINLtEvhLFOyGUaSSdKERrq0xYd2RVnS2lvsqlHEM1AqxkrbjHzyiWK0X5NsFwEH6l2ODu954IBiXh2RBCYkMyq0UQl+32wmBD0O0ut0hjDQWOoehjUsuLiRqazhn7sJ7Opg+xoleSUhg0bcsJJTNLe5yQ5nqEDXkkfqUNuz7ztmSU/2OmwJOjvaECS+IMrpocKQHpedpx4FCep8FnUbpbB56GyyuxfuzOfM63l SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR08MB0971;20:teqSBVcpe3HHial1SVZXlCss9MawcqZ+BrBBVJg6KMQ1hgBjZyL+1MJ2XIFGIEYr5w+4VFS1fR8fJc+PlGKI8jgJPylq/ePrt66b9buz/DXXWuXn1gN1/V+j4eV4CGGcbeHurQq12BGBpTewUnfneVTJMEr3Q8IlhJFgyAT8sEg= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2017 08:39:58.8605 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 041e560a-0788-4901-fd5d-08d530bb7321 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR08MB0971 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org JFYI these patch is in Virtuozzo7 kernel from September, and we have no issues found with it until now by out testing, and initial problem does not reproduce for 2.5 months. From 1584662397027048219@xxx Tue Nov 21 08:10:28 +0000 2017 X-GM-THRID: 1577704452897311330 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread