From patchwork Sat Mar 12 21:52:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: KY Srinivasan X-Patchwork-Id: 8572201 Return-Path: X-Original-To: patchwork-linux-scsi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3ECA3C0553 for ; Sat, 12 Mar 2016 20:16:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3772B20375 for ; Sat, 12 Mar 2016 20:16:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3581F2034C for ; Sat, 12 Mar 2016 20:16:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752193AbcCLUQh (ORCPT ); Sat, 12 Mar 2016 15:16:37 -0500 Received: from p3plsmtps2ded02.prod.phx3.secureserver.net ([208.109.80.59]:59647 "EHLO p3plsmtps2ded02.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750782AbcCLUQg (ORCPT ); Sat, 12 Mar 2016 15:16:36 -0500 Received: from linuxonhyperv.com ([72.167.245.219]) by : HOSTING RELAY : with SMTP id epuoaJuvDD933epuoaiPgn; Sat, 12 Mar 2016 13:13:35 -0700 x-originating-ip: 72.167.245.219 Received: by linuxonhyperv.com (Postfix, from userid 507) id C9C501902EF; Sat, 12 Mar 2016 13:52:49 -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 1/1] scsi: storvsc: Support manual scan of FC hosts on Hyper-V Date: Sat, 12 Mar 2016 13:52:48 -0800 Message-Id: <1457819568-6586-1-git-send-email-kys@microsoft.com> X-Mailer: git-send-email 1.7.4.1 X-CMAE-Envelope: MS4wfAylayNHOeHR7FDyIXbEAL37kcV0x6D/Da5IDm8mMCDV9Dra3A2BqnNZHxPiAZS0JZe5kALgu/M8RdMS0QCQ6WuD2ZpapTReCy47PblcLbTIkhABOjsy 2JpPPPfsHBGdDnKEv//uAQn/FCupX97x+bcqhI9yapBF5EoYmhJkAA5SW7gt1XRK8WAQgVaEaB9ZEZwvBkB1QMb2i9vUB4VR4XylGapc0XgvG4E2z51WEqoM ZCodVn0GM602SxyZA6Urg3jZk5hrRluJ3MfMC6QukBPU80QIpxrZP2yRIuV7AzeiE61KzQJxlMkBEVaFjeAfCTTV7kNe0pRCteZaD7BvBGUI9P/HHLx1bCT6 RYR3nEmf+3Dks1UG58Dt0S37IncWzz6Bc5+LvNyPxcU/NY+ibgceU+66omzSKMql+xL5yxJwhOPT5VTs4cQq2BXUtMgGM1/7BhkI1zq3SIkIlESgL0/fahko WJ60Vcz4Vp5dVBObnaub6c3dzuxfeTim0oBoFu6vom7yaeh6gAvfLK9MSCK13MxXHiY9v3/3CjM8q3Vz3PQZi4DV/tg2lNvVZRFVzPr4GGyCtzGDbNOr0bmg Khg= 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.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB, 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 user scan function associated with FC (fc_user_scan) is not suitable for FC hosts on Hyper-V since we don't have an rport associated with FC host on Hyper-V . Set it to NULL so we can support manual scan of FC targets on Hyper-V. Signed-off-by: K. Y. Srinivasan Tested-by: Long Li Reviewed-by: Long Li --- 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 132b168..8aec590 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1776,6 +1776,12 @@ static int __init storvsc_drv_init(void) * Install Hyper-V specific timeout handler. */ fc_transport_template->eh_timed_out = storvsc_eh_timed_out; + /* + * The default user scan function associated with FC (fc_user_scan) + * is not suitable for FC hosts on Hyper-V. Set it to NULL so we can + * support manual scan of FC targets on Hyper-V. + */ + fc_transport_template->user_scan = NULL; #endif ret = vmbus_driver_register(&storvsc_drv);