* Q: assumptions on make_request() and request_fn()
@ 2002-09-18 20:53 Luben Tuikov
2002-09-19 6:23 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Luben Tuikov @ 2002-09-18 20:53 UTC (permalink / raw)
To: linux-scsi
What are the assumtions for calling make_request() or
the request_fn()?
Interrupt context or process context or both?
(2.4/2.5)
Thanks,
--
Luben
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Q: assumptions on make_request() and request_fn()
2002-09-18 20:53 Q: assumptions on make_request() and request_fn() Luben Tuikov
@ 2002-09-19 6:23 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2002-09-19 6:23 UTC (permalink / raw)
To: Luben Tuikov; +Cc: linux-scsi
On Wed, Sep 18 2002, Luben Tuikov wrote:
> What are the assumtions for calling make_request() or
> the request_fn()?
>
> Interrupt context or process context or both?
make_request_fn() is called from process context, no locks held. It
often sleeps.
request_fn() is called with (2.4: io_request_lock, 2.5: q->queue_lock)
held, and interrupts disabled. The context _may_ be process, it may also
be from an interrupt handler for requeueing etc.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-19 6:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-18 20:53 Q: assumptions on make_request() and request_fn() Luben Tuikov
2002-09-19 6:23 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.