Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77067
b: refs/heads/master
c: 1040c99
h: refs/heads/master
i:
  77065: 1fffc94
  77063: f329cc2
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Jan 12, 2008
1 parent 0c6060d commit bd91824
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: c1635cb786dbadd16fd6e6959dd3b41ae2f2831a
refs/heads/master: 1040c99d9fd9de2bf00efae6d91014f890575bdb
6 changes: 5 additions & 1 deletion trunk/drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,9 @@ int iscsi_queuecommand(struct scsi_cmnd *sc, void (*done)(struct scsi_cmnd *))
sc->SCp.ptr = NULL;

host = sc->device->host;
session = iscsi_hostdata(host->hostdata);
spin_unlock(host->host_lock);

session = iscsi_hostdata(host->hostdata);
spin_lock(&session->lock);

/*
Expand Down Expand Up @@ -1077,11 +1078,13 @@ int iscsi_queuecommand(struct scsi_cmnd *sc, void (*done)(struct scsi_cmnd *))
spin_unlock(&session->lock);

scsi_queue_work(host, &conn->xmitwork);
spin_lock(host->host_lock);
return 0;

reject:
spin_unlock(&session->lock);
debug_scsi("cmd 0x%x rejected (%d)\n", sc->cmnd[0], reason);
spin_lock(host->host_lock);
return SCSI_MLQUEUE_HOST_BUSY;

fault:
Expand All @@ -1091,6 +1094,7 @@ int iscsi_queuecommand(struct scsi_cmnd *sc, void (*done)(struct scsi_cmnd *))
sc->result = (DID_NO_CONNECT << 16);
scsi_set_resid(sc, scsi_bufflen(sc));
sc->scsi_done(sc);
spin_lock(host->host_lock);
return 0;
}
EXPORT_SYMBOL_GPL(iscsi_queuecommand);
Expand Down

0 comments on commit bd91824

Please sign in to comment.