From: Patrick Mansfield <patmans@us.ibm.com>
To: Steven Dake <sdake@mvista.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: rescan bug on 2.5.70 ?
Date: Fri, 30 May 2003 17:45:42 -0700 [thread overview]
Message-ID: <20030530174542.A13763@beaverton.ibm.com> (raw)
In-Reply-To: <3ED7C847.3090203@mvista.com>; from sdake@mvista.com on Fri, May 30, 2003 at 02:08:23PM -0700
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
prev parent reply other threads:[~2003-05-31 0:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-30 21:08 rescan bug on 2.5.70 ? Steven Dake
2003-05-31 0:45 ` Patrick Mansfield [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=20030530174542.A13763@beaverton.ibm.com \
--to=patmans@us.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--cc=sdake@mvista.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