linux-hyperv.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] revert async probing of VMBus scsi device
@ 2019-06-05 18:52 Stephen Hemminger
  2019-06-05 18:54 ` Haiyang Zhang
  2019-06-05 18:56 ` Christoph Hellwig
  0 siblings, 2 replies; 10+ messages in thread
From: Stephen Hemminger @ 2019-06-05 18:52 UTC (permalink / raw)
  To: linux-scsi; +Cc: linux-hyperv, Stephen Hemminger

Doing asynchronous probing can lead to reordered device names
which is leads to failed mounts.

Fixes: af0a5646cb8d ("use the new async probing feature for the hyperv drivers")
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
---
 drivers/scsi/storvsc_drv.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c
index 8472de1007ff..56dcaa43b652 100644
--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -1942,9 +1942,6 @@ static struct hv_driver storvsc_drv = {
 	.id_table = id_table,
 	.probe = storvsc_probe,
 	.remove = storvsc_remove,
-	.driver = {
-		.probe_type = PROBE_PREFER_ASYNCHRONOUS,
-	},
 };
 
 #if IS_ENABLED(CONFIG_SCSI_FC_ATTRS)
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

* RE: [PATCH] revert async probing of VMBus scsi device
  2019-06-05 18:52 [PATCH] revert async probing of VMBus scsi device Stephen Hemminger
@ 2019-06-05 18:54 ` Haiyang Zhang
  2019-06-05 18:56 ` Christoph Hellwig
  1 sibling, 0 replies; 10+ messages in thread
From: Haiyang Zhang @ 2019-06-05 18:54 UTC (permalink / raw)
  To: Stephen Hemminger, linux-scsi; +Cc: linux-hyperv, Stephen Hemminger



> -----Original Message-----
> From: linux-hyperv-owner@vger.kernel.org <linux-hyperv-
> owner@vger.kernel.org> On Behalf Of Stephen Hemminger
> Sent: Wednesday, June 5, 2019 2:52 PM
> To: linux-scsi@vger.kernel.org
> Cc: linux-hyperv@vger.kernel.org; Stephen Hemminger
> <sthemmin@microsoft.com>
> Subject: [PATCH] revert async probing of VMBus scsi device
> 
> Doing asynchronous probing can lead to reordered device names which is
> leads to failed mounts.
> 
> Fixes: af0a5646cb8d ("use the new async probing feature for the hyperv
> drivers")
> Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
> ---

Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] revert async probing of VMBus scsi device
  2019-06-05 18:52 [PATCH] revert async probing of VMBus scsi device Stephen Hemminger
  2019-06-05 18:54 ` Haiyang Zhang
@ 2019-06-05 18:56 ` Christoph Hellwig
  2019-06-05 19:06   ` Stephen Hemminger
  1 sibling, 1 reply; 10+ messages in thread
From: Christoph Hellwig @ 2019-06-05 18:56 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: linux-scsi, linux-hyperv, Stephen Hemminger

On Wed, Jun 05, 2019 at 11:52:05AM -0700, Stephen Hemminger wrote:
> Doing asynchronous probing can lead to reordered device names
> which is leads to failed mounts.

Which is true for every device, and why we use UUIDs or label for
mounts that are supposed to be stable.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] revert async probing of VMBus scsi device
  2019-06-05 18:56 ` Christoph Hellwig
@ 2019-06-05 19:06   ` Stephen Hemminger
  2019-06-05 19:07     ` Christoph Hellwig
  0 siblings, 1 reply; 10+ messages in thread
From: Stephen Hemminger @ 2019-06-05 19:06 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-scsi, linux-hyperv, Stephen Hemminger

On Wed, 5 Jun 2019 11:56:37 -0700
Christoph Hellwig <hch@infradead.org> wrote:

> On Wed, Jun 05, 2019 at 11:52:05AM -0700, Stephen Hemminger wrote:
> > Doing asynchronous probing can lead to reordered device names
> > which is leads to failed mounts.  
> 
> Which is true for every device, and why we use UUIDs or label for
> mounts that are supposed to be stable.

Not everyone is smart enough to do that.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] revert async probing of VMBus scsi device
  2019-06-05 19:06   ` Stephen Hemminger
@ 2019-06-05 19:07     ` Christoph Hellwig
  2019-06-05 19:10       ` Stephen Hemminger
  2019-06-05 19:27       ` David Miller
  0 siblings, 2 replies; 10+ messages in thread
From: Christoph Hellwig @ 2019-06-05 19:07 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Christoph Hellwig, linux-scsi, linux-hyperv, Stephen Hemminger

On Wed, Jun 05, 2019 at 12:06:40PM -0700, Stephen Hemminger wrote:
> > Which is true for every device, and why we use UUIDs or label for
> > mounts that are supposed to be stable.
> 
> Not everyone is smart enough to do that.

Sure.  But they should not get a way out for just one specific driver.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] revert async probing of VMBus scsi device
  2019-06-05 19:07     ` Christoph Hellwig
@ 2019-06-05 19:10       ` Stephen Hemminger
  2019-06-05 19:26         ` Christoph Hellwig
  2019-06-05 19:27       ` David Miller
  1 sibling, 1 reply; 10+ messages in thread
From: Stephen Hemminger @ 2019-06-05 19:10 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-scsi, linux-hyperv, Stephen Hemminger

On Wed, 5 Jun 2019 12:07:23 -0700
Christoph Hellwig <hch@infradead.org> wrote:

> On Wed, Jun 05, 2019 at 12:06:40PM -0700, Stephen Hemminger wrote:
> > > Which is true for every device, and why we use UUIDs or label for
> > > mounts that are supposed to be stable.  
> > 
> > Not everyone is smart enough to do that.  
> 
> Sure.  But they should not get a way out for just one specific driver.

There are people running new kernels on 6 year old distributions.
Was every distribution smart enough then? If you think so, then
this not necessary.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] revert async probing of VMBus scsi device
  2019-06-05 19:10       ` Stephen Hemminger
@ 2019-06-05 19:26         ` Christoph Hellwig
  2019-06-05 20:06           ` Stephen Hemminger
  2019-06-05 21:20           ` Stephen Hemminger
  0 siblings, 2 replies; 10+ messages in thread
From: Christoph Hellwig @ 2019-06-05 19:26 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Christoph Hellwig, linux-scsi, linux-hyperv, Stephen Hemminger

On Wed, Jun 05, 2019 at 12:10:20PM -0700, Stephen Hemminger wrote:
> > Sure.  But they should not get a way out for just one specific driver.
> 
> There are people running new kernels on 6 year old distributions.
> Was every distribution smart enough then? If you think so, then
> this not necessary.

I think you are missing my point.  If we want a way to disable this,
we:

 a) want it opt-in
 b) it needs to for the whole SCSI layer and not just one driver

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] revert async probing of VMBus scsi device
  2019-06-05 19:07     ` Christoph Hellwig
  2019-06-05 19:10       ` Stephen Hemminger
@ 2019-06-05 19:27       ` David Miller
  1 sibling, 0 replies; 10+ messages in thread
From: David Miller @ 2019-06-05 19:27 UTC (permalink / raw)
  To: hch; +Cc: stephen, linux-scsi, linux-hyperv, sthemmin

From: Christoph Hellwig <hch@infradead.org>
Date: Wed, 5 Jun 2019 12:07:23 -0700

> On Wed, Jun 05, 2019 at 12:06:40PM -0700, Stephen Hemminger wrote:
>> > Which is true for every device, and why we use UUIDs or label for
>> > mounts that are supposed to be stable.
>> 
>> Not everyone is smart enough to do that.
> 
> Sure.  But they should not get a way out for just one specific driver.

Agreed.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] revert async probing of VMBus scsi device
  2019-06-05 19:26         ` Christoph Hellwig
@ 2019-06-05 20:06           ` Stephen Hemminger
  2019-06-05 21:20           ` Stephen Hemminger
  1 sibling, 0 replies; 10+ messages in thread
From: Stephen Hemminger @ 2019-06-05 20:06 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-scsi, linux-hyperv, Stephen Hemminger

On Wed, 5 Jun 2019 12:26:47 -0700
Christoph Hellwig <hch@infradead.org> wrote:

> On Wed, Jun 05, 2019 at 12:10:20PM -0700, Stephen Hemminger wrote:
> > > Sure.  But they should not get a way out for just one specific driver.  
> > 
> > There are people running new kernels on 6 year old distributions.
> > Was every distribution smart enough then? If you think so, then
> > this not necessary.  
> 
> I think you are missing my point.  If we want a way to disable this,
> we:
> 
>  a) want it opt-in
>  b) it needs to for the whole SCSI layer and not just one driver

There is some possible issues with how initial images are deployed
with temporary disks.  The temp disks come pre-formatted with a blank
NTFS and cloudinit reformats them to ext4 the first time.

Not sure if ordering matters, or if cloudinit is smart enough to do
the right thing. I am trying to get an answer.

It might just be that the first boot should turn off async probing
for the whole scsi layer via kernel cmdline. Or it might not be an issue
if cloudinit was written by developers smart enough to handle moving
disks.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [PATCH] revert async probing of VMBus scsi device
  2019-06-05 19:26         ` Christoph Hellwig
  2019-06-05 20:06           ` Stephen Hemminger
@ 2019-06-05 21:20           ` Stephen Hemminger
  1 sibling, 0 replies; 10+ messages in thread
From: Stephen Hemminger @ 2019-06-05 21:20 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: linux-scsi, linux-hyperv, Stephen Hemminger

On Wed, 5 Jun 2019 12:26:47 -0700
Christoph Hellwig <hch@infradead.org> wrote:

> On Wed, Jun 05, 2019 at 12:10:20PM -0700, Stephen Hemminger wrote:
> > > Sure.  But they should not get a way out for just one specific driver.  
> > 
> > There are people running new kernels on 6 year old distributions.
> > Was every distribution smart enough then? If you think so, then
> > this not necessary.  
> 
> I think you are missing my point.  If we want a way to disable this,
> we:
> 
>  a) want it opt-in
>  b) it needs to for the whole SCSI layer and not just one driver

Based on feedback from the Program Manager who handles the distros
the patch for storvsc is not needed.

SCSI device naming was never deterministic anyway.  
Cloud-init relies on the same mechanism as the Azure agent to detect the OS and ephemeral disk. 

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-06-05 21:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-05 18:52 [PATCH] revert async probing of VMBus scsi device Stephen Hemminger
2019-06-05 18:54 ` Haiyang Zhang
2019-06-05 18:56 ` Christoph Hellwig
2019-06-05 19:06   ` Stephen Hemminger
2019-06-05 19:07     ` Christoph Hellwig
2019-06-05 19:10       ` Stephen Hemminger
2019-06-05 19:26         ` Christoph Hellwig
2019-06-05 20:06           ` Stephen Hemminger
2019-06-05 21:20           ` Stephen Hemminger
2019-06-05 19:27       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).