[SCSI] libfc: Add routine to copy data from a buffer to a SG list
authorRobert Love <robert.w.love@intel.com>
Tue, 3 Nov 2009 19:47:28 +0000 (11:47 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:05 +0000 (12:01 -0600)
commit5868287460b0fc243e828a0b856cd53d8bf45739
tree81b18b5e3a104b3202b8e2583d9bd3ffc5546895
parent07aac328342d6ca1725d901e1c5da8a1aa88f557
[SCSI] libfc: Add routine to copy data from a buffer to a SG list

When handling the multi-frame responses of fc pass-thru requests,
a code segment similar to fc_fcp_recv_data (routine to receive
inbound SCSI data) is used in the response handler. This patch
is to add a routine, called fc_copy_buffer_to_sglist(), to handle
the common function of copying data from a buffer to a scatter-
gather list in order to avoid code duplication.

Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libfc/fc_fcp.c
drivers/scsi/libfc/fc_libfc.c
drivers/scsi/libfc/fc_libfc.h