2003-08-01 10:24:22

by ooyama eiichi

[permalink] [raw]
Subject: RAW or BLK in 2.4.21

Hi.
I am developping a block device kernel module in 2.4 series.
And i want to make a distinction between raw I/O and block I/O,
in the request function i wrote for my module.
But i could not find the way.

my_request_fn(request_queue_t *q, int rw, struct buffer_head * bh)

Is it possible ?
I would be happy if someone give me a hint about this.

Regards.


2003-08-01 10:27:38

by Jens Axboe

[permalink] [raw]
Subject: Re: RAW or BLK in 2.4.21

On Fri, Aug 01 2003, ooyama eiichi wrote:
> Hi.
> I am developping a block device kernel module in 2.4 series.
> And i want to make a distinction between raw I/O and block I/O,
> in the request function i wrote for my module.
> But i could not find the way.
>
> my_request_fn(request_queue_t *q, int rw, struct buffer_head * bh)
>
> Is it possible ?
> I would be happy if someone give me a hint about this.

No, it is not possible to tell the difference inside your request_fn.

--
Jens Axboe

2003-08-01 14:49:47

by ooyama eiichi

[permalink] [raw]
Subject: Re: RAW or BLK in 2.4.21

Thanks Axboe.
hmm, it is that i have to look at the design again.

eiichi

> On Fri, Aug 01 2003, ooyama eiichi wrote:
> > Hi.
> > I am developping a block device kernel module in 2.4 series.
> > And i want to make a distinction between raw I/O and block I/O,
> > in the request function i wrote for my module.
> > But i could not find the way.
> >
> > my_request_fn(request_queue_t *q, int rw, struct buffer_head * bh)
> >
> > Is it possible ?
> > I would be happy if someone give me a hint about this.
>
> No, it is not possible to tell the difference inside your request_fn.
>
> --
> Jens Axboe
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>