Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 31926
b: refs/heads/master
c: e6f3b63
h: refs/heads/master
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Jun 29, 2006
1 parent ff26d2a commit bb04df8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f53a88da18e3c04c3ade07bc5eff520ee4259c3e
refs/heads/master: e6f3b63f50b4bb9fdc9025e0c3994acd265ad3a2
2 changes: 1 addition & 1 deletion trunk/drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,7 @@ iscsi_session_setup(struct iscsi_transport *iscsit,
if (!try_module_get(iscsit->owner))
goto cls_session_fail;

cls_session = iscsi_create_session(shost, iscsit, 0);
cls_session = iscsi_create_session(shost, iscsit);
if (!cls_session)
goto module_put;
*(unsigned long*)shost->hostdata = (unsigned long)cls_session;
Expand Down
8 changes: 3 additions & 5 deletions trunk/drivers/scsi/scsi_transport_iscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,9 @@ static int iscsi_user_scan(struct Scsi_Host *shost, uint channel,

mutex_lock(&ihost->mutex);
list_for_each_entry(session, &ihost->sessions, host_list) {
if ((channel == SCAN_WILD_CARD ||
channel == session->channel) &&
if ((channel == SCAN_WILD_CARD || channel == 0) &&
(id == SCAN_WILD_CARD || id == session->target_id))
scsi_scan_target(&session->dev, session->channel,
scsi_scan_target(&session->dev, 0,
session->target_id, lun, 1);
}
mutex_unlock(&ihost->mutex);
Expand Down Expand Up @@ -297,7 +296,7 @@ EXPORT_SYMBOL_GPL(iscsi_block_session);
**/
struct iscsi_cls_session *
iscsi_create_session(struct Scsi_Host *shost,
struct iscsi_transport *transport, int channel)
struct iscsi_transport *transport)
{
struct iscsi_host *ihost;
struct iscsi_cls_session *session;
Expand All @@ -322,7 +321,6 @@ iscsi_create_session(struct Scsi_Host *shost,
ihost = shost->shost_data;

session->sid = iscsi_session_nr++;
session->channel = channel;
session->target_id = ihost->next_target_id++;

snprintf(session->dev.bus_id, BUS_ID_SIZE, "session%u",
Expand Down
3 changes: 1 addition & 2 deletions trunk/include/scsi/scsi_transport_iscsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,6 @@ struct iscsi_cls_session {
struct work_struct recovery_work;

int target_id;
int channel;

int sid; /* session id */
void *dd_data; /* LLD private data */
Expand All @@ -210,7 +209,7 @@ struct iscsi_host {
* session and connection functions that can be used by HW iSCSI LLDs
*/
extern struct iscsi_cls_session *iscsi_create_session(struct Scsi_Host *shost,
struct iscsi_transport *t, int channel);
struct iscsi_transport *t);
extern int iscsi_destroy_session(struct iscsi_cls_session *session);
extern struct iscsi_cls_conn *iscsi_create_conn(struct iscsi_cls_session *sess,
uint32_t cid);
Expand Down

0 comments on commit bb04df8

Please sign in to comment.