Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287928
b: refs/heads/master
c: 267a6ad
h: refs/heads/master
v: v3
  • Loading branch information
Huajun Li authored and James Bottomley committed Feb 18, 2012
1 parent d3c7bb3 commit b522827
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 477e3e9ffc13e99918b916a294dcc2d306b677a5
refs/heads/master: 267a6ad4aefaafbde607804c60945bcf97f91c1b
4 changes: 2 additions & 2 deletions trunk/drivers/scsi/scsi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1815,6 +1815,7 @@ static void scsi_finish_async_scan(struct async_scan_data *data)
}
spin_unlock(&async_scan_lock);

scsi_autopm_put_host(shost);
scsi_host_put(shost);
kfree(data);
}
Expand All @@ -1841,7 +1842,6 @@ static int do_scan_async(void *_data)

do_scsi_scan_host(shost);
scsi_finish_async_scan(data);
scsi_autopm_put_host(shost);
return 0;
}

Expand Down Expand Up @@ -1869,7 +1869,7 @@ void scsi_scan_host(struct Scsi_Host *shost)
p = kthread_run(do_scan_async, data, "scsi_scan_%d", shost->host_no);
if (IS_ERR(p))
do_scan_async(data);
/* scsi_autopm_put_host(shost) is called in do_scan_async() */
/* scsi_autopm_put_host(shost) is called in scsi_finish_async_scan() */
}
EXPORT_SYMBOL(scsi_scan_host);

Expand Down

0 comments on commit b522827

Please sign in to comment.