Received: by 10.213.65.68 with SMTP id h4csp1807550imn; Thu, 29 Mar 2018 11:24:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+11S5j2Q0hPwqooNggujYtyd4DbJQYE6ZryuJKiLvf9VZkB5mOIOQTm4qpvvuQW35+R0P4 X-Received: by 2002:a17:902:bc04:: with SMTP id n4-v6mr9468427pls.97.1522347858989; Thu, 29 Mar 2018 11:24:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522347858; cv=none; d=google.com; s=arc-20160816; b=UuDaJWJrHFuzENrppIUfOm8RmDAQhLLFca+oBc790xtt/jGRd3EPg5iWPp17PT+IY2 JSjBFxXxqhXYpDOEpvnBFOjwBk3DUdCvmAV+YpguEfWAUL6cVcc2g+CuwZ6zC4x8RjMi ruuX8cGjTdTDGrDdZ8UfJ6AnWqcx4JbrvJANX8GafYiqQ1yyTfyy5av0S/lNP7m3A0E1 YnU6c2cpEPPyfVAgaS7iXvyGMkf9Y0lKLyQDZzvsuRVBFQj1CGF9cYe+UVZs+LggqtbQ 0hFlK6HwvwUBKwlTcxZRq7AmgmF9qEcKE64hbbCw3HQHOzSvZr+D7A81ZltVIviucbSi jYAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=rSADHIzH1teFs/InldaZ7YjR+J7C1b3PWpiYX8H5hC8=; b=jSSErhfacdECxBrYQjoCBIDQtLHGSTYPoaXc4fkV2wlRJxNINIdjITxQtIfR6Qd7np yNVRPLaamSRGl7nBcgrqF3YKRNZP9WKqgtatdPNkG/jayvexkJuf7evNXMTMVUs7NyK3 b3bnW80fYVgDYvwSqgzktSDSDFVe7+m8LMCx9a4ge3yTXcZHpYjBs/kBMgZju/InMaQV +ZV6t09jG7XheNoAmhuDtdF3uOxILImr0r5fsBaJk4vYJ/VORZhY7o3m3DoiKiQaQZjm f3J87v49BgYiXfcEFGb2yO212FJFq6rtX7bDp1nHlV0mttfdICp188Qm3VmKypXca9uT ENcA== ARC-Authentication-Results: i=1; mx.google.com; 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 o11-v6si6082826plk.672.2018.03.29.11.24.05; Thu, 29 Mar 2018 11:24:18 -0700 (PDT) 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; 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 S1753618AbeC2SXA (ORCPT + 99 others); Thu, 29 Mar 2018 14:23:00 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59428 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753495AbeC2SFq (ORCPT ); Thu, 29 Mar 2018 14:05:46 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 1C6495A7; Thu, 29 Mar 2018 18:05:45 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Julian Wiedmann , "David S. Miller" Subject: [PATCH 4.14 43/43] s390/qeth: on channel error, reject further cmd requests Date: Thu, 29 Mar 2018 20:00:38 +0200 Message-Id: <20180329175734.945268884@linuxfoundation.org> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180329175730.190353692@linuxfoundation.org> References: <20180329175730.190353692@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Julian Wiedmann [ Upstream commit a6c3d93963e4b333c764fde69802c3ea9eaa9d5c ] When the IRQ handler determines that one of the cmd IO channels has failed and schedules recovery, block any further cmd requests from being submitted. The request would inevitably stall, and prevent the recovery from making progress until the request times out. This sort of error was observed after Live Guest Relocation, where the pending IO on the READ channel intentionally gets terminated to kick-start recovery. Simultaneously the guest executed SIOCETHTOOL, triggering qeth to issue a QUERY CARD INFO command. The command then stalled in the inoperabel WRITE channel. Signed-off-by: Julian Wiedmann Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/s390/net/qeth_core_main.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -1175,6 +1175,7 @@ static void qeth_irq(struct ccw_device * } rc = qeth_get_problem(cdev, irb); if (rc) { + card->read_or_write_problem = 1; qeth_clear_ipacmd_list(card); qeth_schedule_recovery(card); goto out;