Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 136321
b: refs/heads/master
c: 7289968
h: refs/heads/master
i:
  136319: 88eccf2
v: v3
  • Loading branch information
Mike Christie authored and James Bottomley committed Mar 13, 2009
1 parent a35f265 commit 54fe883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 5e7facb77ff4b6961d936773fb1f175f7abf76b7
refs/heads/master: 728996829b3e2a3bbacb7390e6c040dd839cdf21
7 changes: 5 additions & 2 deletions trunk/drivers/scsi/libiscsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1603,8 +1603,11 @@ static void fail_all_commands(struct iscsi_conn *conn, unsigned lun,
{
struct iscsi_task *task, *tmp;

if (conn->task && (conn->task->sc->device->lun == lun || lun == -1))
conn->task = NULL;
if (conn->task) {
if (lun == -1 ||
(conn->task->sc && conn->task->sc->device->lun == lun))
conn->task = NULL;
}

/* flush pending */
list_for_each_entry_safe(task, tmp, &conn->xmitqueue, running) {
Expand Down

0 comments on commit 54fe883

Please sign in to comment.