david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[scsi] Make LUN a property of the SCSI backend only

Nothing within the SCSI core actually refers to the LUN, so we can
simplify matters by treating it as purely a property of the backend.
This commit is contained in:
Michael Brown 2009-08-09 16:09:47 +01:00
parent d944794680
commit cf716a0ce6
2 changed files with 0 additions and 3 deletions

View File

@ -253,8 +253,6 @@ struct scsi_lun {
struct scsi_device {
/** Block device interface */
struct block_device blockdev;
/** Logical unit number (LUN) */
struct scsi_lun lun;
/**
* Issue SCSI command
*

View File

@ -1763,7 +1763,6 @@ int iscsi_attach ( struct scsi_device *scsi, const char *root_path ) {
/* Attach parent interface, mortalise self, and return */
scsi->backend = ref_get ( &iscsi->refcnt );
scsi->command = iscsi_command;
scsi->lun = iscsi->lun;
ref_put ( &iscsi->refcnt );
return 0;