Files
mirror_zfs/module/os/linux/zfs
Daniel Perry 2dff7527d4 Replace usage of schedule_timeout with schedule_timeout_interruptible (#16150)
This commit replaces current usages of schedule_timeout() with
schedule_timeout_interruptible() in code paths that expect the running
task to sleep for a short period of time. When schedule_timeout() is
called without previously calling set_current_state(), the running
task never sleeps because the task state remains in TASK_RUNNING.

By calling schedule_timeout_interruptible() to set the task state to
TASK_INTERRUPTIBLE before calling schedule_timeout() we achieve the
intended/desired behavior of putting the task to sleep for the
specified timeout.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Daniel Perry <dtperry@amazon.com>
Closes #16150
2024-05-09 07:30:28 -07:00
..
2023-09-07 14:38:17 -07:00
2023-09-01 18:00:30 -07:00
2023-11-08 10:19:41 -08:00
2023-11-08 10:19:41 -08:00
2022-10-29 13:05:11 -07:00
2023-10-30 16:56:04 -07:00