public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Boaz Harrosh <bharrosh@panasas.com>
To: Prashant Bhole <prashantsmailcenter@gmail.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: query regarding command conversion
Date: Tue, 15 Dec 2009 15:02:01 +0200	[thread overview]
Message-ID: <4B2788C9.9070003@panasas.com> (raw)
In-Reply-To: <9ff69a5d0912150356w583bfdefs1a9046842609cfba@mail.gmail.com>

On 12/15/2009 01:56 PM, Prashant Bhole wrote:
> Hi,
> I have a SATA disk which is represented by node /dev/sdb.
> I opened that device using open_blk_excl() to perform IO from a kernel module.
> IO request is submitted using generic_make_request() which is in terms
> of struct bio.
> As per my knowledge LLDs do not deal with struct bio.
> 
> My question is, where does the struct bio to struct scatterlist
> conversion takes place
> before SCSI layer calls hostt->queuecommand()?
> 
> Thanks,

It is done in scsi_init_sgtable() scsi_lib.c. As part of scsi's prep_fn

Boaz

      reply	other threads:[~2009-12-15 13:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-15 11:56 query regarding command conversion Prashant Bhole
2009-12-15 13:02 ` Boaz Harrosh [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=4B2788C9.9070003@panasas.com \
    --to=bharrosh@panasas.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=prashantsmailcenter@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox