Re: LANANA: To Pending Device Number Registrants

Jens Axboe
2001-05-16T12:59:12Z

On Wed, May 16 2001, Daniel Phillips wrote:
> On Tuesday 15 May 2001 17:34, Linus Torvalds wrote:
> > On Tue, 15 May 2001, Neil Brown wrote:
> > > Ofcourse setting the "queue" function that __blk_get_queue call to
> > > do a lookup of the minor and choose an appropriate queue for the
> > > "real" device wont work as you need to munge bh->b_rdev too.
> >
> > What I would do is:
> > - remove b_rdev completely.
>
> :-) And b_rsector too?

Way ahead of you, it's gone :-)

Neither of these are part of the buffer_head as a caching entity, they
belong purely in the I/O path. I'll show code in a day or two.

> > [...]
>
> > - replace is with b_index
> >
> > Then, the "get_queue" functions basically end up doing the mapping of
> >
> > b_dev -> <queue,b_index>
>
> To clarify, will be b_index be in the buffer_head or not?

It should not

--
Jens Axboe