* query regarding command conversion
@ 2009-12-15 11:56 Prashant Bhole
2009-12-15 13:02 ` Boaz Harrosh
0 siblings, 1 reply; 2+ messages in thread
From: Prashant Bhole @ 2009-12-15 11:56 UTC (permalink / raw)
To: linux-scsi
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,
--
~p~r~a~s~h~a~n~t~
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: query regarding command conversion
2009-12-15 11:56 query regarding command conversion Prashant Bhole
@ 2009-12-15 13:02 ` Boaz Harrosh
0 siblings, 0 replies; 2+ messages in thread
From: Boaz Harrosh @ 2009-12-15 13:02 UTC (permalink / raw)
To: Prashant Bhole; +Cc: linux-scsi
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-15 13:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-15 11:56 query regarding command conversion Prashant Bhole
2009-12-15 13:02 ` Boaz Harrosh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox