mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Akinobu Mita" <akinobu.mita@gmail.com>
To: "Alan Stern" <stern@rowland.harvard.edu>
Cc: "Miles Lane" <miles.lane@gmail.com>,
	"Andrew Morton" <akpm@osdl.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"USB development list" <linux-usb-devel@lists.sourceforge.net>,
	"Rafael J. Wysocki" <rjw@sisk.pl>
Subject: Re: [linux-usb-devel] 2.6.23-rc1-mm2 + cpufreq patch + hot-fixes -- [<f8ea528f>] usb_stor_scan_thread+0xbd/0x15a [usb_storage]
Date: Tue, 7 Aug 2007 00:26:36 +0900	[thread overview]
Message-ID: <961aa3350708060826n58a9dbd5o67355d5e53542e8a@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0708061007350.3265-100000@iolanthe.rowland.org>

2007/8/6, Alan Stern <stern@rowland.harvard.edu>:
> On Sat, 4 Aug 2007, Miles Lane wrote:
>
> > Initializing USB Mass Storage driver...
> > usb-storage 4-3:1.0: usb_probe_interface
> > usb-storage 4-3:1.0: usb_probe_interface - got id
> > scsi2 : SCSI emulation for USB Mass Storage devices
> > usbcore: registered new interface driver usb-storage
> > usb-storage: device found at 2
> > usb-storage: waiting for device to settle before scanning
> > schedule_timeout: wrong timeout value f8ea51d2
> >  [<c01080ab>] show_trace_log_lvl+0x12/0x25
> >  [<c0108a9e>] show_trace+0xd/0x10
> >  [<c0108bac>] dump_stack+0x16/0x18
> >  [<c031e31e>] schedule_timeout+0x2c/0x8b
> >  [<f8ea528f>] usb_stor_scan_thread+0xbd/0x15a [usb_storage]
> >  [<c0139d64>] kthread+0x3b/0x63
> >  [<c0107c63>] kernel_thread_helper+0x7/0x10
> >  =======================
>
> Does this happen repeatably?
>
> Did you set usb-storage's delay_use parameter to something peculiar?

I also have same problem. It is caused by
http://kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc1/2.6.23-rc1-mm2/broken-out/freezer-introduce-freezer-firendly-waiting-macros.patch

The patch below may not be good fix. But it shows what is problem.

Index: 2.6-mm/include/linux/freezer.h
===================================================================
--- 2.6-mm.orig/include/linux/freezer.h
+++ 2.6-mm/include/linux/freezer.h
@@ -149,13 +149,13 @@ static inline void set_freezable(void)

 #define wait_event_freezable_timeout(wq, condition, timeout)		\
 ({									\
-	long __ret = timeout;						\
+	long ____ret = timeout;						\
 	do {								\
-		__ret = wait_event_interruptible_timeout(wq,		\
+		____ret = wait_event_interruptible_timeout(wq,		\
 				(condition) || freezing(current),	\
-				__ret); 				\
+				____ret); 				\
 	} while (try_to_freeze());					\
-	__ret;								\
+	____ret;							\
 })
 #else /* !CONFIG_PM_SLEEP */
 static inline int frozen(struct task_struct *p) { return 0; }

      reply	other threads:[~2007-08-06 15:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-04 12:18 Miles Lane
2007-08-06 14:09 ` [linux-usb-devel] " Alan Stern
2007-08-06 15:26   ` Akinobu Mita [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=961aa3350708060826n58a9dbd5o67355d5e53542e8a@mail.gmail.com \
    --to=akinobu.mita@gmail.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=miles.lane@gmail.com \
    --cc=rjw@sisk.pl \
    --cc=stern@rowland.harvard.edu \
    /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®