public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Problem with the default IOSCHED
@ 2005-11-02  0:28 Marcel Holtmann
  2005-11-02  0:32 ` Randy.Dunlap
  2005-11-02 11:55 ` Jens Axboe
  0 siblings, 2 replies; 5+ messages in thread
From: Marcel Holtmann @ 2005-11-02  0:28 UTC (permalink / raw)
  To: linux-kernel

Hi guys,

by accident I selected the anticipatory IO scheduler as default in my
kernel config, but only the CFQ was built in. The anticipatory and
deadline were only available as modules. This caused an oops at boot.
After selecting CFQ as default schedule and a recompile and reboot
everything was fine again.

Regards

Marcel



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

* Re: Problem with the default IOSCHED
  2005-11-02  0:28 Problem with the default IOSCHED Marcel Holtmann
@ 2005-11-02  0:32 ` Randy.Dunlap
  2005-11-02  0:50   ` Marcel Holtmann
  2005-11-02 11:55 ` Jens Axboe
  1 sibling, 1 reply; 5+ messages in thread
From: Randy.Dunlap @ 2005-11-02  0:32 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: linux-kernel

On Wed, 2 Nov 2005, Marcel Holtmann wrote:

> Hi guys,
>
> by accident I selected the anticipatory IO scheduler as default in my
> kernel config, but only the CFQ was built in. The anticipatory and
> deadline were only available as modules. This caused an oops at boot.
> After selecting CFQ as default schedule and a recompile and reboot
> everything was fine again.

What kernel version?  There are already some patches
in 2.6.14-gitN for this kind of problem.
Have you tried the -git updates?

-- 
~Randy

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

* Re: Problem with the default IOSCHED
  2005-11-02  0:32 ` Randy.Dunlap
@ 2005-11-02  0:50   ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2005-11-02  0:50 UTC (permalink / raw)
  To: Randy.Dunlap; +Cc: linux-kernel

Hi Randy,

> > by accident I selected the anticipatory IO scheduler as default in my
> > kernel config, but only the CFQ was built in. The anticipatory and
> > deadline were only available as modules. This caused an oops at boot.
> > After selecting CFQ as default schedule and a recompile and reboot
> > everything was fine again.
> 
> What kernel version?  There are already some patches
> in 2.6.14-gitN for this kind of problem.
> Have you tried the -git updates?

sorry, I forgot to mention that. It is the latest vanilla you can get.

Regards

Marcel



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

* Re: Problem with the default IOSCHED
  2005-11-02  0:28 Problem with the default IOSCHED Marcel Holtmann
  2005-11-02  0:32 ` Randy.Dunlap
@ 2005-11-02 11:55 ` Jens Axboe
  2005-11-06 18:57   ` Marcel Holtmann
  1 sibling, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2005-11-02 11:55 UTC (permalink / raw)
  To: Marcel Holtmann; +Cc: linux-kernel

On Wed, Nov 02 2005, Marcel Holtmann wrote:
> Hi guys,
> 
> by accident I selected the anticipatory IO scheduler as default in my
> kernel config, but only the CFQ was built in. The anticipatory and
> deadline were only available as modules. This caused an oops at boot.
> After selecting CFQ as default schedule and a recompile and reboot
> everything was fine again.

Hmm yes, that looks like a bug introduced with the io scheduler
selection reorg. There's really no support in place for requesting this
module out of initrd, I'd rather just make your selection illegal. Does
this work for you?

diff --git a/drivers/block/Kconfig.iosched b/drivers/block/Kconfig.iosched
index 5b90d2f..f3b7753 100644
--- a/drivers/block/Kconfig.iosched
+++ b/drivers/block/Kconfig.iosched
@@ -46,13 +46,13 @@ choice
 	  block devices.
 
 	config DEFAULT_AS
-		bool "Anticipatory" if IOSCHED_AS
+		bool "Anticipatory" if IOSCHED_AS=y
 
 	config DEFAULT_DEADLINE
-		bool "Deadline" if IOSCHED_DEADLINE
+		bool "Deadline" if IOSCHED_DEADLINE=y
 
 	config DEFAULT_CFQ
-		bool "CFQ" if IOSCHED_CFQ
+		bool "CFQ" if IOSCHED_CFQ=y
 
 	config DEFAULT_NOOP
 		bool "No-op"

-- 
Jens Axboe


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

* Re: Problem with the default IOSCHED
  2005-11-02 11:55 ` Jens Axboe
@ 2005-11-06 18:57   ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2005-11-06 18:57 UTC (permalink / raw)
  To: Jens Axboe; +Cc: linux-kernel

Hi Jens,

> > by accident I selected the anticipatory IO scheduler as default in my
> > kernel config, but only the CFQ was built in. The anticipatory and
> > deadline were only available as modules. This caused an oops at boot.
> > After selecting CFQ as default schedule and a recompile and reboot
> > everything was fine again.
> 
> Hmm yes, that looks like a bug introduced with the io scheduler
> selection reorg. There's really no support in place for requesting this
> module out of initrd, I'd rather just make your selection illegal. Does
> this work for you?

the patch looks good and please get this out to Linus, because I just
made the same mistake on another machine.

Regards

Marcel



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

end of thread, other threads:[~2005-11-06 18:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-02  0:28 Problem with the default IOSCHED Marcel Holtmann
2005-11-02  0:32 ` Randy.Dunlap
2005-11-02  0:50   ` Marcel Holtmann
2005-11-02 11:55 ` Jens Axboe
2005-11-06 18:57   ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox