* rescan bug on 2.5.70 ?
@ 2003-05-30 21:08 Steven Dake
2003-05-31 0:45 ` Patrick Mansfield
0 siblings, 1 reply; 2+ messages in thread
From: Steven Dake @ 2003-05-30 21:08 UTC (permalink / raw)
To: linux-scsi
Folks,
I attempted
echo "1" > rescan within a device in the scsi sysfs tree on 2.5.70.
The kernel repeatadly printed out the SDA device information. The
system was still usable, but it appeared the rescan code was stuck in a
loop which dumped printks continuously. Only way out was a reset.
Anyone else seen this behavior ?
Thanks
-steve
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: rescan bug on 2.5.70 ?
2003-05-30 21:08 rescan bug on 2.5.70 ? Steven Dake
@ 2003-05-31 0:45 ` Patrick Mansfield
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Mansfield @ 2003-05-31 0:45 UTC (permalink / raw)
To: Steven Dake; +Cc: linux-scsi
On Fri, May 30, 2003 at 02:08:23PM -0700, Steven Dake wrote:
> Folks,
>
> I attempted
> echo "1" > rescan within a device in the scsi sysfs tree on 2.5.70.
>
> The kernel repeatadly printed out the SDA device information. The
> system was still usable, but it appeared the rescan code was stuck in a
> loop which dumped printks continuously. Only way out was a reset.
>
> Anyone else seen this behavior ?
Yes, I tried it out, and hit the same thing. The user program (not sure
what C code) is retrying the write, since we return 0. You can kill the
program, though I couldn't ^C/intr the echo, I killed it from another
terminal.
Trivial patch against current scsi-misc-2.5:
===== drivers/scsi/scsi_sysfs.c 1.21 vs edited =====
--- 1.21/drivers/scsi/scsi_sysfs.c Mon May 26 08:45:44 2003
+++ edited/drivers/scsi/scsi_sysfs.c Sat May 31 00:04:45 2003
@@ -204,7 +204,7 @@
store_rescan_field (struct device *dev, const char *buf, size_t count)
{
scsi_rescan_device(dev);
- return 0;
+ return count;
}
static DEVICE_ATTR(rescan, S_IRUGO | S_IWUSR, show_rescan_field, store_rescan_field)
-- Patrick Mansfield
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-31 0:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-30 21:08 rescan bug on 2.5.70 ? Steven Dake
2003-05-31 0:45 ` Patrick Mansfield
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox