Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2518715imm; Mon, 28 May 2018 09:36:15 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqw+83qwFB9SXc3JEye9zsYKqJvtbxZVp7EWGJcD7cPpauevOwCWqXSc03ZMhIVDrb12ik7 X-Received: by 2002:a17:902:bb81:: with SMTP id m1-v6mr10764500pls.117.1527525374875; Mon, 28 May 2018 09:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527525374; cv=none; d=google.com; s=arc-20160816; b=QXzobh0ZcWFTeDssLNt5sBm+/HiVx859BE1JWgNf/CdMOkb2dTsfDYcXnmTdyrvmw2 n41Qwm/kD0OVCKHWRDgSGhMW+w7XqIxUizrnpH+r912vOkPkTXvsaHVAEXf9+QTwulzv tMtH8y6V5pwGdWTPkqRW0E5vq7Pr+gcnPNey3hcu/IiIYtqc5n62uJ5QFf7fTu5KcEYP Sj9e/j/20SYreK45Qz9kVmJAJx4H3jyUjSmzIwLjscMPDDlbYf4HNVCvNQZMKxL5cMYQ WcIu0GysHBr1JiX7IRBc0tPETMwmoR0AP3XMmjI/aRM4GS5SpsumK88ujfoIQW+K9pgM 3mXQ== 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:dkim-signature :arc-authentication-results; bh=J4HH4ZYx+oJB1wZ7qAjwWP/PBjvIWJR4v1MqHelQ+PY=; b=uhL5DiLcy0vkOeLgcG++/tUub0czT/k7gprvwZPnSCTnf++VszWnGIh8GG3FcY8ira ZuASdHp/E3tgoMnTnpGmUVmp2V9do9KhGtt53gGT/6Ywd6d1RPnb/RtWj4BdQrrG5UQc 5VyIHmZQf6KhP/KeAzSAa5xV7/g2MUhNlP/+qAtK8hSw+uDiaSQ/SW1ifhZR5NfsBrTc y9FZ/PhmP6tZoCyJtEEWrbPwggU/PRmdY+COVOWi8bgxmmbB8f2U7+MLZ5oei69QNXBR s1wqV3G9GldFl1fhu8XLofF/gGDhHkoOQ4zzDGAmGpOgkigiPiRXKLoa8D3WYKuCC9LV 3QUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IIqjrFES; 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 z10-v6si23379863pgz.443.2018.05.28.09.36.00; Mon, 28 May 2018 09:36:14 -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; dkim=pass header.i=@kernel.org header.s=default header.b=IIqjrFES; 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 S934862AbeE1KIp (ORCPT + 99 others); Mon, 28 May 2018 06:08:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:56676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934203AbeE1KIf (ORCPT ); Mon, 28 May 2018 06:08:35 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D6098208AD; Mon, 28 May 2018 10:08:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527502115; bh=yYjxZh/Q2B/FRuMx7kArN72pfCu3dsXJV9MKUPo+urQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IIqjrFESuSr8XQv3aqt5E0mYXkFO9yLHeq1cDzJzqVrbjK1E/9DUmcfzKLkLL/Tfy 6Mky2m84dovlpOlFPFGtuWNW6lhBhucOzgGA5M2tNXzXHETEUPLgF4S575hkyxpoDM YGZXpyBqB1W/2SW7wTM9VY+x6/ovV2h7BVj9McM4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sebastian Ott , Martin Schwidefsky , Sasha Levin Subject: [PATCH 3.18 066/185] s390/cio: clear timer when terminating driver I/O Date: Mon, 28 May 2018 12:01:47 +0200 Message-Id: <20180528100056.456495774@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180528100050.700971285@linuxfoundation.org> References: <20180528100050.700971285@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 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sebastian Ott [ Upstream commit 410d5e13e7638bc146321671e223d56495fbf3c7 ] When we terminate driver I/O (because we need to stop using a certain channel path) we also need to ensure that a timer (which may have been set up using ccw_device_start_timeout) is cleared. Signed-off-by: Sebastian Ott Signed-off-by: Martin Schwidefsky Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/s390/cio/device_fsm.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/s390/cio/device_fsm.c +++ b/drivers/s390/cio/device_fsm.c @@ -885,6 +885,7 @@ void ccw_device_kill_io(struct ccw_devic { int ret; + ccw_device_set_timeout(cdev, 0); cdev->private->iretry = 255; cdev->private->async_kill_io_rc = -EIO; ret = ccw_device_cancel_halt_clear(cdev);