diff options
| author | Merlin Scholz <merlin@scholz.ruhr> | 2023-02-28 21:32:43 +0000 |
|---|---|---|
| committer | Merlin Scholz <merlin@scholz.ruhr> | 2023-07-10 00:23:40 +0200 |
| commit | 8379c2acedacfb770209d5a3609d49f363a72de5 (patch) | |
| tree | c38946b93367bb2e9bc3a719ffbc7ea2a0232a57 | |
| parent | 0ece9082bce4053e94641d833f6fde2dcd3fade4 (diff) | |
Remove tsleep timeout from lockdoc-test to adapt to the recent changes in the FreeBSD port
| -rw-r--r-- | sys/lockdoc/test.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/lockdoc/test.c b/sys/lockdoc/test.c index db0274f33f9..3f789c9a4d1 100644 --- a/sys/lockdoc/test.c +++ b/sys/lockdoc/test.c @@ -16,7 +16,6 @@ #define DEV_FILE_ITER_NAME "iterations" #define DEFAULT_ITERATIONS LOCKDOC_TEST_ITERATIONS -#define TSLEEP_TIMEOUT 120000 #define MS_TO_HZ(x) ((x) * hz / 1000) /* * For some reasons, our ring buffer (aka BSB ring buffer) @@ -358,8 +357,8 @@ static void start_and_wait_thread(const char *fn_name, void (*work_fn)(void*)) { if (error) { return; } - printf("%s: Waiting for %s thread to terminate...\n", __func__, fn_name); - error = tsleep(temp, 0, "ldctl", MS_TO_HZ(TSLEEP_TIMEOUT)); + printf("%s: Waiting for %s thread (%d) to terminate...\n", __func__, fn_name, temp->l_lid); + error = tsleep(temp, 0, "ldctl", 0); if (error) { printf("%s: Error waiting for %s thread\n", __func__, fn_name); } else { @@ -435,7 +434,7 @@ int lockdoc_ctl_write(dev_t self, struct uio *uio, int flags){ uprintf("%s: Waiting for control_thread to terminate...\n", __func__); // This will block the caller until all threads terminated - error = tsleep(control_thread, 0, "ldctl", MS_TO_HZ(TSLEEP_TIMEOUT)); + error = tsleep(control_thread, 0, "ldctl", 0); if (error) { uprintf("%s: Wait for control thread timed out\n", __func__); return (error); |
