* device plugging
@ 2001-07-07 5:40 gopi krishna
2001-07-07 10:27 ` Jens Axboe
0 siblings, 1 reply; 3+ messages in thread
From: gopi krishna @ 2001-07-07 5:40 UTC (permalink / raw)
To: linux-kernel
Why do we need a dummy req for plugging.
As i understood only thing plugging does is to, on arrival of new req if
the dev queue is empty, puts a dummy req on the queue, and schedules the
unplug routine on tq_disk, which on being scheduled calls the strategy
routine.
So we can as well put the new req on the queue without dummy req.
If i'm incorrect please explain what's exact process and the reason
Please cc the response to mgopi@indiainfo.com as i'm not subscribed.
thanks
----------------------------------------
http://mail.indiainfo.com
First you had 10MB of free mail space.
Now you can send mails in your own language !!!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: device plugging
2001-07-07 5:40 device plugging gopi krishna
@ 2001-07-07 10:27 ` Jens Axboe
2001-07-12 8:58 ` gopi krishna
0 siblings, 1 reply; 3+ messages in thread
From: Jens Axboe @ 2001-07-07 10:27 UTC (permalink / raw)
To: gopi krishna; +Cc: linux-kernel
On Sat, Jul 07 2001, gopi krishna wrote:
> Why do we need a dummy req for plugging.
> As i understood only thing plugging does is to, on arrival of new req if
> the dev queue is empty, puts a dummy req on the queue, and schedules the
> unplug routine on tq_disk, which on being scheduled calls the strategy
> routine.
You are reading 2.2 sources, maybe try the 2.4 sources as they are
easier to follow in this regard IMHO.
What happens is that we assign dev->current_request &dev->plug, so that
the front request is recognizable as the 'plug' and not a valid request.
You seem to completely misunderstand plugging -- if we just put the new
request on the queue and scheduled tq_disk, then there would be no
plugging going on at all. What we do instead is add this specific 'plug
request' and queue lots of stuff behind that. Not until someone needs
the data on the queue is the 'plug request' removed and the request_fn
run. This happens for instance if _someone else_ calls tq_disk,
typically __wait_on_buffer.
> So we can as well put the new req on the queue without dummy req.
Wrong
> If i'm incorrect please explain what's exact process and the reason
See?
--
Jens Axboe
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: device plugging
2001-07-07 10:27 ` Jens Axboe
@ 2001-07-12 8:58 ` gopi krishna
0 siblings, 0 replies; 3+ messages in thread
From: gopi krishna @ 2001-07-12 8:58 UTC (permalink / raw)
To: linux-kernel
Hello,
Can some one provide online pointers for the description and features
of linux 2.4 kernel.
The rubini 2nd edn is not avlbl in india and most of the books
still concentrate on 2.2.
Plz cc the responses to mgopi@indiainfo.com as i am no subscribed to the
group
----------------------------------------
http://mail.indiainfo.com
First you had 10MB of free mail space.
Now you can send mails in your own language !!!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-07-12 9:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-07 5:40 device plugging gopi krishna
2001-07-07 10:27 ` Jens Axboe
2001-07-12 8:58 ` gopi krishna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox