chiark / gitweb /
increase WAIT_FOR_SYSFS timeout to 10 seconds
authorKay Sievers <kay.sievers@vrfy.org>
Fri, 31 Aug 2007 09:01:35 +0000 (11:01 +0200)
committerKay Sievers <kay.sievers@vrfy.org>
Fri, 31 Aug 2007 09:01:35 +0000 (11:01 +0200)
We see SCSI disks where it takes 6.5 seconds to populate the
sysfs attributes.

udev_rules.c

index ef352ca..dcd0914 100644 (file)
@@ -1040,7 +1040,7 @@ static int match_rule(struct udevice *udev, struct udev_rule *rule)
        if (rule->wait_for_sysfs.operation != KEY_OP_UNSET) {
                int found;
 
-               found = (wait_for_sysfs(udev, key_val(rule, &rule->wait_for_sysfs), 3) == 0);
+               found = (wait_for_sysfs(udev, key_val(rule, &rule->wait_for_sysfs), 10) == 0);
                if (!found && (rule->wait_for_sysfs.operation != KEY_OP_NOMATCH))
                        goto nomatch;
        }