Skip to content

Commit 7996a77

Browse files
Mike ChristieJames Bottomley
authored andcommitted
[SCSI] iscsi: add libiscsi
There is a lot of code duplcited between iscsi_tcp and the upcoming iscsi_iser driver. This patch puts the duplicated code in a lib. There is more code to move around but this takes care of the basics. For iscsi_offload if they use the lib we will probably move some things around. For example in the queuecommand we will not assume that the LLD wants to do queue_work, but it is better to handle that later when we know for sure what iscsi_offload looks like (we could probably do this for iscsi_iser though to). Ideally I would like to get the iscsi_transports modules to a place where all they really have to do is put data on the wire, but how to do that will hopefully be more clear when we see other modules like iscsi_offload. Or maybe iscsi_offload will not use the lib and it will just be iscsi_iser and iscsi_tcp and maybe the iscsi_tcp_tgt if that is allowed in mainline. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent 30a6c65 commit 7996a77

File tree

6 files changed

+2045
-118
lines changed

6 files changed

+2045
-118
lines changed

drivers/scsi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ obj-$(CONFIG_SCSI_FC_ATTRS) += scsi_transport_fc.o
3333
obj-$(CONFIG_SCSI_ISCSI_ATTRS) += scsi_transport_iscsi.o
3434
obj-$(CONFIG_SCSI_SAS_ATTRS) += scsi_transport_sas.o
3535

36-
obj-$(CONFIG_ISCSI_TCP) += iscsi_tcp.o
36+
obj-$(CONFIG_ISCSI_TCP) += libiscsi.o iscsi_tcp.o
3737
obj-$(CONFIG_SCSI_AMIGA7XX) += amiga7xx.o 53c7xx.o
3838
obj-$(CONFIG_A3000_SCSI) += a3000.o wd33c93.o
3939
obj-$(CONFIG_A2091_SCSI) += a2091.o wd33c93.o

0 commit comments

Comments
 (0)