* [PATCH] link scsi_debug later
@ 2006-03-17 20:44 Randy.Dunlap
2006-03-18 5:29 ` Andrew Morton
0 siblings, 1 reply; 8+ messages in thread
From: Randy.Dunlap @ 2006-03-17 20:44 UTC (permalink / raw)
To: scsi; +Cc: jejb, akpm
From: Randy Dunlap <rdunlap@xenotime.net>
Link scsi-debug driver after SATA so that scsi-debug does not
interfere with real SCSI device ordering.
Yes, I was bitten by this.
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
drivers/scsi/Makefile | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- linux-2616-rc6.orig/drivers/scsi/Makefile
+++ linux-2616-rc6/drivers/scsi/Makefile
@@ -117,7 +117,6 @@ obj-$(CONFIG_SCSI_PPA) += ppa.o
obj-$(CONFIG_SCSI_IMM) += imm.o
obj-$(CONFIG_JAZZ_ESP) += NCR53C9x.o jazz_esp.o
obj-$(CONFIG_SUN3X_ESP) += NCR53C9x.o sun3x_esp.o
-obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o
obj-$(CONFIG_SCSI_FCAL) += fcal.o
obj-$(CONFIG_SCSI_LASI700) += 53c700.o lasi700.o
obj-$(CONFIG_SCSI_NSP32) += nsp32.o
@@ -140,6 +139,7 @@ obj-$(CONFIG_SCSI_SATA_MV) += libata.o s
obj-$(CONFIG_SCSI_PDC_ADMA) += libata.o pdc_adma.o
obj-$(CONFIG_ARM) += arm/
+obj-$(CONFIG_SCSI_DEBUG) += scsi_debug.o
obj-$(CONFIG_CHR_DEV_ST) += st.o
obj-$(CONFIG_CHR_DEV_OSST) += osst.o
---
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] link scsi_debug later
2006-03-17 20:44 [PATCH] link scsi_debug later Randy.Dunlap
@ 2006-03-18 5:29 ` Andrew Morton
2006-03-18 6:19 ` Randy.Dunlap
0 siblings, 1 reply; 8+ messages in thread
From: Andrew Morton @ 2006-03-18 5:29 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: linux-scsi, james.bottomley
"Randy.Dunlap" <rdunlap@xenotime.net> wrote:
>
> From: Randy Dunlap <rdunlap@xenotime.net>
>
> Link scsi-debug driver after SATA so that scsi-debug does not
> interfere with real SCSI device ordering.
> Yes, I was bitten by this.
>
What does "bitten" mean?
Is this a regression?
If so, relative to which release?
Potentially this sort of thing can have serious effects. Like, non-booting
machines. Is that the case here?
Is this 2.6.16 material?
Stuff like that, thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] link scsi_debug later
2006-03-18 5:29 ` Andrew Morton
@ 2006-03-18 6:19 ` Randy.Dunlap
2006-03-18 6:24 ` Douglas Gilbert
2006-03-18 6:27 ` Andrew Morton
0 siblings, 2 replies; 8+ messages in thread
From: Randy.Dunlap @ 2006-03-18 6:19 UTC (permalink / raw)
To: Andrew Morton; +Cc: linux-scsi, james.bottomley
On Fri, 17 Mar 2006 21:29:24 -0800 Andrew Morton wrote:
> "Randy.Dunlap" <rdunlap@xenotime.net> wrote:
> >
> > From: Randy Dunlap <rdunlap@xenotime.net>
> >
> > Link scsi-debug driver after SATA so that scsi-debug does not
> > interfere with real SCSI device ordering.
> > Yes, I was bitten by this.
> >
>
> What does "bitten" mean?
It means that I got the usual "VFS: could not find root filesystem on
device (8,8)" (or however it is spelled).
Oh, and that I had to add netconsole to see what was causing it,
but that is easy enough to do.
> Is this a regression?
It's probably been like this ever since SATA was added (libata)
and only happens if SCSI_DEBUG=y (so I changed it to =m).
I can't say that it's a regression since this occurred on a new
machine.
> If so, relative to which release?
>
> Potentially this sort of thing can have serious effects. Like, non-booting
> machines. Is that the case here?
Yes, it was.
> Is this 2.6.16 material?
Well... I would say yes, I don't think it's too risky for that.
> Stuff like that, thanks.
OK, I'll try to be more verbose in the future (on patches).
---
~Randy
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] link scsi_debug later
2006-03-18 6:19 ` Randy.Dunlap
@ 2006-03-18 6:24 ` Douglas Gilbert
2006-03-18 13:22 ` James Bottomley
2006-03-18 6:27 ` Andrew Morton
1 sibling, 1 reply; 8+ messages in thread
From: Douglas Gilbert @ 2006-03-18 6:24 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: Andrew Morton, linux-scsi, james.bottomley
Randy.Dunlap wrote:
> On Fri, 17 Mar 2006 21:29:24 -0800 Andrew Morton wrote:
>
>
>>"Randy.Dunlap" <rdunlap@xenotime.net> wrote:
>>
>>>From: Randy Dunlap <rdunlap@xenotime.net>
>>>
>>>Link scsi-debug driver after SATA so that scsi-debug does not
>>>interfere with real SCSI device ordering.
>>>Yes, I was bitten by this.
>>>
>>
>>What does "bitten" mean?
>
>
> It means that I got the usual "VFS: could not find root filesystem on
> device (8,8)" (or however it is spelled).
> Oh, and that I had to add netconsole to see what was causing it,
> but that is easy enough to do.
>
>
>>Is this a regression?
>
>
> It's probably been like this ever since SATA was added (libata)
> and only happens if SCSI_DEBUG=y (so I changed it to =m).
> I can't say that it's a regression since this occurred on a new
> machine.
Ah, if scsi_debug is a module, nothing is going to
load it automatically (at least the PCI subsystem
won't load it). However if it is built in then
it will "steal" /dev/sda (if some other SCSI LLD
hasn't already got it). That would then cause
a SATA driver to get /dev/sdb ... That is enough
to cause a kernel parameter like "root=/dev/sda8"
to flounder and give the "could not find root filesystem"
error.
A regression??
Hmm.
Doug Gilbert
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] link scsi_debug later
2006-03-18 6:19 ` Randy.Dunlap
2006-03-18 6:24 ` Douglas Gilbert
@ 2006-03-18 6:27 ` Andrew Morton
2006-03-18 13:07 ` Matthew Wilcox
1 sibling, 1 reply; 8+ messages in thread
From: Andrew Morton @ 2006-03-18 6:27 UTC (permalink / raw)
To: Randy.Dunlap; +Cc: linux-scsi, james.bottomley
"Randy.Dunlap" <rdunlap@xenotime.net> wrote:
>
> On Fri, 17 Mar 2006 21:29:24 -0800 Andrew Morton wrote:
>
> > "Randy.Dunlap" <rdunlap@xenotime.net> wrote:
> > >
> > > From: Randy Dunlap <rdunlap@xenotime.net>
> > >
> > > Link scsi-debug driver after SATA so that scsi-debug does not
> > > interfere with real SCSI device ordering.
> > > Yes, I was bitten by this.
> > >
> >
> > What does "bitten" mean?
>
> It means that I got the usual "VFS: could not find root filesystem on
> device (8,8)" (or however it is spelled).
> Oh, and that I had to add netconsole to see what was causing it,
> but that is easy enough to do.
>
> > Is this a regression?
>
> It's probably been like this ever since SATA was added (libata)
> and only happens if SCSI_DEBUG=y (so I changed it to =m).
> I can't say that it's a regression since this occurred on a new
> machine.
OK, thanks. For the recond, I altered the changelog to read
Changing CONFIG_SCSI_DEBUG from =n or =m to =y can cause the
enumeration of the SATA devices to change.
Fix that by linking the scsi-debug driver after the SATA drivers.
> > Is this 2.6.16 material?
>
> Well... I would say yes, I don't think it's too risky for that.
Pretty much any change is risky in this kernel :(
James, your call please.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] link scsi_debug later
2006-03-18 6:27 ` Andrew Morton
@ 2006-03-18 13:07 ` Matthew Wilcox
0 siblings, 0 replies; 8+ messages in thread
From: Matthew Wilcox @ 2006-03-18 13:07 UTC (permalink / raw)
To: Andrew Morton; +Cc: Randy.Dunlap, linux-scsi, james.bottomley
On Fri, Mar 17, 2006 at 10:27:38PM -0800, Andrew Morton wrote:
> "Randy.Dunlap" <rdunlap@xenotime.net> wrote:
> > > Is this 2.6.16 material?
> >
> > Well... I would say yes, I don't think it's too risky for that.
>
> Pretty much any change is risky in this kernel :(
>
> James, your call please.
I'm not James, but I think it's a safe change for 2.6.16.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] link scsi_debug later
2006-03-18 6:24 ` Douglas Gilbert
@ 2006-03-18 13:22 ` James Bottomley
2006-03-18 19:07 ` Randy.Dunlap
0 siblings, 1 reply; 8+ messages in thread
From: James Bottomley @ 2006-03-18 13:22 UTC (permalink / raw)
To: dougg; +Cc: Randy.Dunlap, Andrew Morton, linux-scsi
On Sat, 2006-03-18 at 01:24 -0500, Douglas Gilbert wrote:
> Ah, if scsi_debug is a module, nothing is going to
> load it automatically (at least the PCI subsystem
> won't load it). However if it is built in then
> it will "steal" /dev/sda (if some other SCSI LLD
> hasn't already got it). That would then cause
> a SATA driver to get /dev/sdb ... That is enough
> to cause a kernel parameter like "root=/dev/sda8"
> to flounder and give the "could not find root filesystem"
> error.
Is there actually any purpose for not compiling scsi_debug as a module?
i.e. isn't the problem really that we simply shouldn't allow it to be
built directly into the kernel and it should only be compilable as a
module?
James
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] link scsi_debug later
2006-03-18 13:22 ` James Bottomley
@ 2006-03-18 19:07 ` Randy.Dunlap
0 siblings, 0 replies; 8+ messages in thread
From: Randy.Dunlap @ 2006-03-18 19:07 UTC (permalink / raw)
To: James Bottomley; +Cc: dougg, akpm, linux-scsi
On Sat, 18 Mar 2006 07:22:44 -0600 James Bottomley wrote:
> On Sat, 2006-03-18 at 01:24 -0500, Douglas Gilbert wrote:
> > Ah, if scsi_debug is a module, nothing is going to
> > load it automatically (at least the PCI subsystem
> > won't load it). However if it is built in then
> > it will "steal" /dev/sda (if some other SCSI LLD
> > hasn't already got it). That would then cause
> > a SATA driver to get /dev/sdb ... That is enough
> > to cause a kernel parameter like "root=/dev/sda8"
> > to flounder and give the "could not find root filesystem"
> > error.
>
> Is there actually any purpose for not compiling scsi_debug as a module?
> i.e. isn't the problem really that we simply shouldn't allow it to be
> built directly into the kernel and it should only be compilable as a
> module?
I don't see a need to be that restrictive about it.
As long as SCSI_DEBUG is last, it won't affect the device order
(boot or other devices), which is the problem IMO.
Yes, the scsi-debug device(s) could become different devices
depending on what other SCSI devices were found, so maybe someone's
scripts would have to change (scripts should be flexible :).
But that would also happen if SCSI_DEBUG=m.
Anyway, I'll let Doug/James decide.
---
~Randy
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-03-18 19:05 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-17 20:44 [PATCH] link scsi_debug later Randy.Dunlap
2006-03-18 5:29 ` Andrew Morton
2006-03-18 6:19 ` Randy.Dunlap
2006-03-18 6:24 ` Douglas Gilbert
2006-03-18 13:22 ` James Bottomley
2006-03-18 19:07 ` Randy.Dunlap
2006-03-18 6:27 ` Andrew Morton
2006-03-18 13:07 ` Matthew Wilcox
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).