diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2021-02-01 15:28:23 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2021-02-01 15:29:24 +0000 |
commit | dda93ce17e3d0e025b5e9aa83271438cc41ff734 (patch) | |
tree | 9ce2123dc99abe16fa66e8b3cf807b447cddc074 | |
parent | 536e0c2e9a63721596cdf93e996e7469cadfaaae (diff) |
i915/sysfs_clients: Bump the number of recycle search retries
A small bump to try again in the face of delayed appearance of directory
entries.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
-rw-r--r-- | tests/i915/sysfs_clients.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i915/sysfs_clients.c b/tests/i915/sysfs_clients.c index e936bd48..ab0e39cd 100644 --- a/tests/i915/sysfs_clients.c +++ b/tests/i915/sysfs_clients.c @@ -237,7 +237,7 @@ static const char *find_client(int clients, pid_t pid, char *buf) DIR *dir = fdopendir(dup(clients)); /* Reading a dir as it changes does not appear to be stable, SEP */ - for (int pass = 0; pass < 3; pass++) { + for (int pass = 0; pass < 5; pass++) { struct dirent *de; rewinddir(dir); @@ -254,6 +254,7 @@ static const char *find_client(int clients, pid_t pid, char *buf) strncpy(buf, de->d_name, BUFSZ); goto out; } + usleep(100); } *buf = '\0'; out: |