Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127200
b: refs/heads/master
c: f29d3b2
h: refs/heads/master
v: v3
  • Loading branch information
Arjan van de Ven committed Jan 7, 2009
1 parent 8e49138 commit 95bb253
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 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: 793180570ff2530d133343ceea85648de5f01b02
refs/heads/master: f29d3b23238e1955a8094e038c72546e99308e61
16 changes: 7 additions & 9 deletions trunk/drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -5951,6 +5951,12 @@ static void async_port_probe(void *data, async_cookie_t cookie)
*/
}
}

/* in order to keep device order, we need to synchronize at this point */
async_synchronize_cookie(cookie);

ata_scsi_scan_host(ap, 1);

}
/**
* ata_host_register - register initialized ATA host
Expand Down Expand Up @@ -6033,15 +6039,7 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)
struct ata_port *ap = host->ports[i];
async_schedule(async_port_probe, ap);
}
async_synchronize_full();
/* probes are done, now scan each port's disk(s) */
DPRINTK("host probe begin\n");
for (i = 0; i < host->n_ports; i++) {
struct ata_port *ap = host->ports[i];

ata_scsi_scan_host(ap, 1);
}
DPRINTK("host probe end\n");
DPRINTK("probe end\n");

return 0;
}
Expand Down

0 comments on commit 95bb253

Please sign in to comment.