[openib-general] [PATCH 3/6] [RFC] iser initiator

Or Gerlitz ogerlitz at voltaire.com
Thu Feb 23 02:27:05 PST 2006


>> I'd say kill the non-SG case.  We're in the progress of removing non-SG
>> commands in the scsi midlayer, and I'm pretty sure they won't exist
>> anymore before the iser code merged.

>I wonder what would be the simplest patch to support it, does it make sense to 
 >use virt_to_page on  sc->request_buffer to compose one entry SG on the 
fly
 >and use it down the code?

Specifically, does something like makes sense?

struct scatterlist my_sg; /* somewhere, but iser_send_command  stack */

if(!sc->use_sg) {
  	my_sg.page   = virt_to_page(sc->request_buffer);
	my_sg.length = sc->request_bufflen;
	my_sg.offset = 0;
}

now continue as ususal to process my_sg (it can't be on the stack

Or.





More information about the general mailing list