diff options
| author | Merlin Scholz <merlin@scholz.ruhr> | 2023-02-28 21:32:43 +0000 |
|---|---|---|
| committer | Merlin Scholz <merlin@scholz.ruhr> | 2023-02-28 21:32:43 +0000 |
| commit | 1b3a9123bec97df69a3ad6bb631ab3fec6b46c8e (patch) | |
| tree | b1a3d9c765c5b446f1ec6ef1e3c705cc59afffe9 /sys | |
| parent | 0e44bf4b6cc27acd40d8a7b5d3342a233d22ed25 (diff) | |
Remove tsleep timeout from lockdoc-test to adapt to the recent changes in the FreeBSD port
Diffstat (limited to 'sys')
| -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); |
