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 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html