From patchwork Thu Jan 28 02:22:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KY Srinivasan X-Patchwork-Id: 8145441 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DFE199F38B for ; Thu, 28 Jan 2016 00:46:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0C62920219 for ; Thu, 28 Jan 2016 00:46:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3599420160 for ; Thu, 28 Jan 2016 00:46:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967709AbcA1Aqe (ORCPT ); Wed, 27 Jan 2016 19:46:34 -0500 Received: from p3plsmtps2ded01.prod.phx3.secureserver.net ([208.109.80.58]:56382 "EHLO p3plsmtps2ded01.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967654AbcA1AqW (ORCPT ); Wed, 27 Jan 2016 19:46:22 -0500 Received: from linuxonhyperv.com ([72.167.245.219]) by : HOSTING RELAY : with SMTP id Oaj6aFVMBzzCiOaj6aGzYe; Wed, 27 Jan 2016 17:46:21 -0700 x-originating-ip: 72.167.245.219 Received: by linuxonhyperv.com (Postfix, from userid 507) id 4A0191902B2; Wed, 27 Jan 2016 18:22:46 -0800 (PST) From: "K. Y. Srinivasan" To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, devel@linuxdriverproject.org, ohering@suse.com, jbottomley@parallels.com, hch@infradead.org, linux-scsi@vger.kernel.org, apw@canonical.com, vkuznets@redhat.com, jasowang@redhat.com, martin.petersen@oracle.com, hare@suse.de Cc: "K. Y. Srinivasan" Subject: [PATCH V2 1/2] scsi: storvsc: Install the storvsc specific timeout handler for FC devices Date: Wed, 27 Jan 2016 18:22:44 -0800 Message-Id: <1453947765-28764-1-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1453947739-28725-1-git-send-email-kys@microsoft.com> References: <1453947739-28725-1-git-send-email-kys@microsoft.com> X-CMAE-Envelope: MS4wfC3VA6iBoxLlI32wMDMrAv5QPASYz2i2dpryzXFTrkNadf8y9smqSZD9mbmZlkVWMfS5GXdDd8ZbYyMfZXCLSleQXAtz7r3qpRdGw6OzOPiIc1asqaqE W/Dt3PsvwZqIHjzqFBdMtnJoeDGz+AxIKMd3xI2aiFwj/D8jqEYTtPHQB2MOkIuc+BmEKB6SEyOxw1F1B3YR2mGdXxc6wQJAXnbTme3UBkL57rtPLThytMkC dsJrT5AQoNRUcAt0PfxK6i22baKwDZnBQYa08C2ayZsihmQkbayzk1vboPT968zn3GMeKda3ejP1ZVAsJZi4bh9+C5rHPYvKRVVG8ipbgPW1xZga0sVA4czU rVWjqiqwQb+PPgfLTp+pN4oKovjdcnlaODlvXLN7TOBMmMg+HRWX1+Hfz7uO/0/PPhsx/mwQOlSq1yyuvyvM+6afga58p2xXV8yZvI43g6lLbMYe4GUrlrN1 k4y6b8U7mqCVQmME20AlZgV+9YhsAsoTsqsv1MceO5UNZOsgNp7gvR8x2yLTkXwpalHLkrapo7YseU35dUzJWna00vdao42Ak68YlqtpIKXnGkVwsvn5j01G Y5A= Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The default timeout routine used for FC transport is not suitable for FC devices managed by storvsc since FC devices managed by storvsc driver do not have an rport associated with them. Use the time out handler used for SCSI devices for FC devices as well. Signed-off-by: K. Y. Srinivasan Reviewed-by: Alex Ng Tested-by: Vivek Yadav Reviewed-by: Johannes Thumshirn --- drivers/scsi/storvsc_drv.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 41c115c..622f64a 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -42,6 +42,7 @@ #include #include #include +#include /* * All wire protocol details (storage protocol between the guest and the host) @@ -1770,6 +1771,11 @@ static int __init storvsc_drv_init(void) fc_transport_template = fc_attach_transport(&fc_transport_functions); if (!fc_transport_template) return -ENODEV; + + /* + * Install Hyper-V specific timeout handler. + */ + fc_transport_template->eh_timed_out = storvsc_eh_timed_out; #endif ret = vmbus_driver_register(&storvsc_drv);