From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: KY Srinivasan <kys@microsoft.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Christoph Hellwig <hch@infradead.org>,
"gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"devel@linuxdriverproject.org" <devel@linuxdriverproject.org>,
"ohering@suse.com" <ohering@suse.com>,
"jbottomley@parallels.com" <jbottomley@parallels.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"apw@canonical.com" <apw@canonical.com>,
"vkuznets@redhat.com" <vkuznets@redhat.com>,
"jasowang@redhat.com" <jasowang@redhat.com>,
"hare@suse.de" <hare@suse.de>
Subject: [PATCH 2/2] storvsc_drv: make use of the lightweight FC transport class
Date: Fri, 18 Mar 2016 15:42:30 -0700 [thread overview]
Message-ID: <1458340950.2892.9.camel@HansenPartnership.com> (raw)
In-Reply-To: <1458340866.2892.7.camel@HansenPartnership.com>
Signed-off-by: James Bottomley <jejb@linux.vnet.ibm.com>
---
drivers/scsi/storvsc_drv.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 3ddcabb..dcb7393 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -1769,21 +1769,16 @@ static int __init storvsc_drv_init(void)
sizeof(u64)));
#if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
- fc_transport_template = fc_attach_transport(&fc_transport_functions);
+ fc_transport_template = fc_lw_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);
#if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
if (ret)
- fc_release_transport(fc_transport_template);
+ fc_lw_release_transport(fc_transport_template);
#endif
return ret;
@@ -1793,7 +1788,7 @@ static void __exit storvsc_drv_exit(void)
{
vmbus_driver_unregister(&storvsc_drv);
#if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
- fc_release_transport(fc_transport_template);
+ fc_lw_release_transport(fc_transport_template);
#endif
}
--
2.6.2
next prev parent reply other threads:[~2016-03-18 22:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-12 21:52 [PATCH 1/1] scsi: storvsc: Support manual scan of FC hosts on Hyper-V K. Y. Srinivasan
2016-03-15 13:40 ` Christoph Hellwig
2016-03-15 14:27 ` KY Srinivasan
2016-03-15 21:25 ` Martin K. Petersen
2016-03-15 23:01 ` KY Srinivasan
2016-03-16 22:34 ` Martin K. Petersen
2016-03-16 23:07 ` James Bottomley
2016-03-16 23:15 ` KY Srinivasan
2016-03-16 23:40 ` James Bottomley
2016-03-17 0:01 ` KY Srinivasan
2016-03-18 22:41 ` James Bottomley
2016-03-18 22:42 ` James Bottomley [this message]
2016-03-20 18:58 ` KY Srinivasan
2016-03-22 20:10 ` KY Srinivasan
2016-03-30 6:39 ` KY Srinivasan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1458340950.2892.9.camel@HansenPartnership.com \
--to=james.bottomley@hansenpartnership.com \
--cc=apw@canonical.com \
--cc=devel@linuxdriverproject.org \
--cc=gregkh@linuxfoundation.org \
--cc=hare@suse.de \
--cc=hch@infradead.org \
--cc=jasowang@redhat.com \
--cc=jbottomley@parallels.com \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=ohering@suse.com \
--cc=vkuznets@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox