From cf716a0ce622557cbd407980bf1e8b5db1ed6891 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 9 Aug 2009 16:09:47 +0100 Subject: [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. --- src/net/tcp/iscsi.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/net/tcp') diff --git a/src/net/tcp/iscsi.c b/src/net/tcp/iscsi.c index 74da05d68..771384b94 100644 --- a/src/net/tcp/iscsi.c +++ b/src/net/tcp/iscsi.c @@ -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; -- cgit v1.2.3-55-g7522