Move code that is used both by initiator and target drivers
authorBart Van Assche <bart.vanassche@sandisk.com>
Fri, 8 May 2015 08:07:48 +0000 (10:07 +0200)
committerJames Bottomley <JBottomley@Odin.com>
Mon, 1 Jun 2015 14:32:43 +0000 (07:32 -0700)
commit07e3842055c391e611dd907c81760f4c705f9acb
tree56005ced37b31c082fa984981a8073a241ff3839
parentc5f1ac8b94bd10f97f5aa1a3279ad8e8bbc6311a
Move code that is used both by initiator and target drivers

Move the functions that are used by both the initiator and target
subsystems into scsi_common.c/.h. This change will allow to remove
the initiator SCSI header include directives from most SCSI target
source files in a later patch.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/Makefile
drivers/scsi/scsi.c
drivers/scsi/scsi_common.c [new file with mode: 0644]
drivers/scsi/scsi_error.c
drivers/scsi/scsi_scan.c
include/scsi/scsi.h
include/scsi/scsi_common.h [new file with mode: 0644]
include/scsi/scsi_device.h
include/scsi/scsi_eh.h