Re: [PATCH 1/1] dasd: fix double elevator_exit call when deadline iosched fails to load

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 07, 2008 at 11:03:35AM +0100, Martin Schwidefsky wrote:
> On Fri, 2008-03-07 at 10:28 +0100, Heiko Carstens wrote:
> > On Fri, Mar 07, 2008 at 10:17:51AM +0100, Martin Schwidefsky wrote:
> > > On Thu, 2008-03-06 at 21:08 +0100, Bastian Blank wrote:
> > > > On Wed, Mar 05, 2008 at 06:02:03PM -0500, Josef 'Jeff' Sipek wrote:
> > > > >  config DASD
> > > > >  	tristate "Support for DASD devices"
> > > > > -	depends on CCW && BLOCK
> > > > > +	depends on CCW && IOSCHED_DEADLINE && BLOCK
> > > > 
> > > > select IOSCHED_DEADLINE?
> > > 
> > > Yes, this makes more sense.
> > 
> > Err... I made the "depends on" suggestion because of this from
> > Documentation/kbuild/kconfig-language.txt :
> > 
> >   Note:
> > 	select is evil.... select will by brute force set a symbol
> > 	equal to 'y' without visiting the dependencies. So abusing
> > 	select you are able to select a symbol FOO even if FOO depends
> > 	on BAR that is not set. In general use select only for
> > 	non-visible symbols (no promts anywhere) and for symbols with
> > 	no dependencies. That will limit the usefulness but on the
> > 	other hand avoid the illegal configurations all over. kconfig
> > 	should one day warn about such things.
> 
> IOSCHED_DEADLINE depends only on BLOCK. Since the dasd driver itself
> depends on BLOCK the select will always work. I think this is better
> than a hidden dasd driver if IOSCHED_DEADLINE is not selected. 

It gets more ugly if/when someone changes the IOSCHED_DEADLINE dependencies
=> changes are that the DASD 'select' statement will not be updated.

Josef 'Jeff' Sipek.

-- 
Mankind invented the atomic bomb, but no mouse would ever construct a
mousetrap.
		- Albert Einstein
--
To unsubscribe from this list: send the line "unsubscribe linux-s390" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux