Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 30909
b: refs/heads/master
c: a8601e5
h: refs/heads/master
i:
  30907: 20b763f
v: v3
  • Loading branch information
Andrew Morton authored and Jeff Garzik committed Jun 27, 2006
1 parent 4d3ee35 commit 0711ab8
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 5806db22cffc7557b675d3c9229f327980aee797
refs/heads/master: a8601e5f6b77aa4f223058a93bc5f77e1ee45638
7 changes: 6 additions & 1 deletion trunk/drivers/scsi/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ int libata_fua = 0;
module_param_named(fua, libata_fua, int, 0444);
MODULE_PARM_DESC(fua, "FUA support (0=off, 1=on)");

static int ata_probe_timeout = ATA_TMOUT_INTERNAL / HZ;
module_param(ata_probe_timeout, int, 0444);
MODULE_PARM_DESC(ata_probe_timeout, "Set ATA probing timeout (seconds)");

MODULE_AUTHOR("Jeff Garzik");
MODULE_DESCRIPTION("Library module for ATA devices");
MODULE_LICENSE("GPL");
Expand Down Expand Up @@ -1059,7 +1063,7 @@ unsigned ata_exec_internal(struct ata_device *dev,

spin_unlock_irqrestore(ap->lock, flags);

rc = wait_for_completion_timeout(&wait, ATA_TMOUT_INTERNAL);
rc = wait_for_completion_timeout(&wait, ata_probe_timeout);

ata_port_flush_task(ap);

Expand Down Expand Up @@ -5738,6 +5742,7 @@ int ata_pci_device_resume(struct pci_dev *pdev)

static int __init ata_init(void)
{
ata_probe_timeout *= HZ;
ata_wq = create_workqueue("ata");
if (!ata_wq)
return -ENOMEM;
Expand Down

0 comments on commit 0711ab8

Please sign in to comment.