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 ef352ca2bc4cef3adf24438538096254cb92d55f..dcd091485b8e74c433916941c5aabd9e000f8e73 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;
        }