From: Long Li <longli@microsoft.com>
To: Johannes Thumshirn <jthumshirn@suse.de>,
"James E.J. Bottomley" <jejb@linux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
KY Srinivasan <kys@microsoft.com>,
Bart Van Assche <Bart.VanAssche@sandisk.com>,
"Christoph Hellwig" <hch@infradead.org>,
Stephen Hemminger <sthemmin@microsoft.com>
Subject: RE: [PATCH v2] storvsc: use default I/O timeout handler for FC devices
Date: Wed, 14 Jun 2017 19:19:58 +0000 [thread overview]
Message-ID: <MWHPR03MB3136B62CABFE986250B2547FCEC30@MWHPR03MB3136.namprd03.prod.outlook.com> (raw)
In-Reply-To: <5d983dac-69b6-ff89-d1ef-e0ea9b8136b1@suse.de>
> -----Original Message-----
> From: Johannes Thumshirn [mailto:jthumshirn@suse.de]
> Sent: Wednesday, June 14, 2017 1:25 AM
> To: Long Li <longli@microsoft.com>; James E.J. Bottomley
> <jejb@linux.vnet.ibm.com>; Martin K. Petersen <martin.petersen@oracle.com>;
> linux-scsi@vger.kernel.org; linux-kernel@vger.kernel.org; KY Srinivasan
> <kys@microsoft.com>; Bart Van Assche <Bart.VanAssche@sandisk.com>;
> Christoph Hellwig <hch@infradead.org>; Stephen Hemminger
> <sthemmin@microsoft.com>
> Cc: Long Li <longli@microsoft.com>
> Subject: Re: [PATCH v2] storvsc: use default I/O timeout handler for FC devices
>
> On 06/13/2017 11:34 PM, Long Li wrote:
> > From: Long Li <longli@microsoft.com>
> >
> > FC disks issue I/O directly to the host storage port driver, this is
> > diffirent to VHD disks where I/O is virtualized and timeout is handled
> > by the host VSP (Virtualization Service Provider).
> >
> > FC disks are usually setup in a multipath system, and they don't want
> > to reset timer on I/O timeout. Timeout is detected by multipath as a
> > good time to failover and recover.
> >
> > Patch v2 includes suggestions from Bart Van Assche
> > <Bart.VanAssche@sandisk.com>
> >
> > Signed-off-by: Long Li <longli@microsoft.com>
> > ---
> > drivers/scsi/storvsc_drv.c | 4 ++++
> > 1 file changed, 4 insertions(+)
> >
> > diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
> > index 8d955db..3cc8d67 100644
> > --- a/drivers/scsi/storvsc_drv.c
> > +++ b/drivers/scsi/storvsc_drv.c
> > @@ -1495,6 +1495,10 @@ static int storvsc_host_reset_handler(struct
> scsi_cmnd *scmnd)
> > */
> > static enum blk_eh_timer_return storvsc_eh_timed_out(struct scsi_cmnd
> > *scmnd) {
> > +#if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
> > + if (scmnd->device->host->transportt == fc_transport_template)
> > + return fc_eh_timed_out(scmnd);
> > +#endif
>
> Can you please change the #if IS_ENABLED() to
> if(IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
> && scmnd->device->host->transportt == fc_transport_template)
>
> That way we have better compiler coverage.
Thank you for pointing this out.
The coding style is kept consistent with the rest of the FC related code in storvsc. E.g. the definition of fc_transport_template (and many other places):
#if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
static struct scsi_transport_template *fc_transport_template;
#endif
I suggest we make another patch to fix this in all the places. This patch is mainly for fixing FC timeout.
Long
>
> Thanks,
> Johannes
>
> --
> Johannes Thumshirn Storage
> jthumshirn@suse.de +49 911 74053 689
> SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
> GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg)
> Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850
prev parent reply other threads:[~2017-06-14 19:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-13 21:34 Long Li
2017-06-14 8:24 ` Johannes Thumshirn
2017-06-14 19:19 ` Long Li [this message]
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=MWHPR03MB3136B62CABFE986250B2547FCEC30@MWHPR03MB3136.namprd03.prod.outlook.com \
--to=longli@microsoft.com \
--cc=Bart.VanAssche@sandisk.com \
--cc=hch@infradead.org \
--cc=jejb@linux.vnet.ibm.com \
--cc=jthumshirn@suse.de \
--cc=kys@microsoft.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=sthemmin@microsoft.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
all inboxes | Powered by JetHome®