public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* elvtune fails with DAC960 and devfs on 2.4.14
@ 2001-11-13 19:53 Brian Ristuccia
  2001-11-13 21:11 ` Dave Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Ristuccia @ 2001-11-13 19:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: bristucc


I can't seem to adjust the elevator parameters for this block device, but
can't:

# elvtune /dev/rd/disc0/disc
ioctl get: Invalid argument

Tried unsucessfully with elvtune from Debian's elvtune package 2.11l-3 and
also 2.11m from kernel.org.

Any hints?

-- 
Brian Ristuccia
bristucc@sw.starentnetworks.com

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

* Re: elvtune fails with DAC960 and devfs on 2.4.14
  2001-11-13 19:53 elvtune fails with DAC960 and devfs on 2.4.14 Brian Ristuccia
@ 2001-11-13 21:11 ` Dave Jones
  2001-11-14  7:56   ` Jens Axboe
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Jones @ 2001-11-13 21:11 UTC (permalink / raw)
  To: Brian Ristuccia; +Cc: linux-kernel

On Tue, 13 Nov 2001, Brian Ristuccia wrote:

> I can't seem to adjust the elevator parameters for this block device, but
> can't:
> # elvtune /dev/rd/disc0/disc
> ioctl get: Invalid argument

DAC960.c doesn't know about BLKELVSET / BLKELVGET, and control is
only passed down to the generic ioctl in the case of BLKBSZSET,
and doesn't have a default: entry in the switch statement of
DAC960_IOCTL()

I've not seen one of these devices, so I'm not sure if this makes
sense or not, but passing on requests to the lower level should
be a simple..

	default:
		return( blk_ioctl(Inode->i_rdev, Request, Argument));

Addition.

There may be other reasons this driver doesn't provide the
elevator ioctls though.

regards,

Dave.

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs


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

* Re: elvtune fails with DAC960 and devfs on 2.4.14
  2001-11-13 21:11 ` Dave Jones
@ 2001-11-14  7:56   ` Jens Axboe
  0 siblings, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2001-11-14  7:56 UTC (permalink / raw)
  To: Dave Jones; +Cc: Brian Ristuccia, linux-kernel

On Tue, Nov 13 2001, Dave Jones wrote:
> On Tue, 13 Nov 2001, Brian Ristuccia wrote:
> 
> > I can't seem to adjust the elevator parameters for this block device, but
> > can't:
> > # elvtune /dev/rd/disc0/disc
> > ioctl get: Invalid argument
> 
> DAC960.c doesn't know about BLKELVSET / BLKELVGET, and control is
> only passed down to the generic ioctl in the case of BLKBSZSET,
> and doesn't have a default: entry in the switch statement of
> DAC960_IOCTL()
> 
> I've not seen one of these devices, so I'm not sure if this makes
> sense or not, but passing on requests to the lower level should
> be a simple..
> 
> 	default:
> 		return( blk_ioctl(Inode->i_rdev, Request, Argument));
> 
> Addition.

Or just add it to the BLKBSZGET etc string that pass it on to blk_ioctl
anyways.

> There may be other reasons this driver doesn't provide the
> elevator ioctls though.

None, it was simply never added.

-- 
Jens Axboe


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

end of thread, other threads:[~2001-11-14  7:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-13 19:53 elvtune fails with DAC960 and devfs on 2.4.14 Brian Ristuccia
2001-11-13 21:11 ` Dave Jones
2001-11-14  7:56   ` Jens Axboe

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