Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Martin Peschke <mp3@de.ibm.com>
To: linux-scsi@vger.kernel.org
Subject: question on scsi_alloc_sdev()
Date: Thu, 10 Aug 2006 16:37:43 +0200	[thread overview]
Message-ID: <44DB44B7.9080708@de.ibm.com> (raw)

Does anybody know for sure whether scsi_alloc_sdev() is guaranteed to
be called in process context or not?

There seem to be contradictory signs in scsi_scan.c:
scsi_alloc_sdev() uses GFP_ATOMIC, as related functions do.
It might be called in a section protected by a mutex.

I conducted a little experiment using might_sleep() in scsi_alloc_sdev()
- no backtrace on the console, hence process context.

Or, is the purpose of GFP_ATOMIC just (SCSI) I/O avoidance, and sleeping
isn't an issue?

Thanks,
Martin


             reply	other threads:[~2006-08-10 14:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10 14:37 Martin Peschke [this message]
2006-08-10 15:03 ` question on scsi_alloc_sdev() James Bottomley

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=44DB44B7.9080708@de.ibm.com \
    --to=mp3@de.ibm.com \
    --cc=linux-scsi@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox