Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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.
  • Loading branch information
Michael Brown committed Aug 10, 2009
1 parent d944794 commit cf716a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/include/gpxe/scsi.h
Expand Up @@ -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
*
Expand Down
1 change: 0 additions & 1 deletion src/net/tcp/iscsi.c
Expand Up @@ -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;

Expand Down

0 comments on commit cf716a0

Please sign in to comment.