All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Luben Tuikov <luben@splentec.com>
Cc: linux-scsi <linux-scsi@vger.kernel.org>
Subject: Re: Q: assumptions on make_request() and request_fn()
Date: Thu, 19 Sep 2002 08:23:45 +0200	[thread overview]
Message-ID: <20020919062345.GH16579@suse.de> (raw)
In-Reply-To: <3D88E7BC.63735D7E@splentec.com>

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


      reply	other threads:[~2002-09-19  6:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-18 20:53 Q: assumptions on make_request() and request_fn() Luben Tuikov
2002-09-19  6:23 ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020919062345.GH16579@suse.de \
    --to=axboe@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=luben@splentec.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.