aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2024-07-29 01:41:06 +0000
committerMark Johnston <markj@FreeBSD.org>2024-07-29 01:43:49 +0000
commitd37286b9bf92ec923ab6823bbedef9e39e7e1ebb (patch)
tree07d8e43fc9256abcb4571bb686014434d5eafc99 /sys/compat/linuxkpi/common
parent472888018ce141227f8b019b6663739c36bc608c (diff)
downloadsrc-d37286b9bf92ec923ab6823bbedef9e39e7e1ebb.tar.gz
src-d37286b9bf92ec923ab6823bbedef9e39e7e1ebb.zip
proc: Remove kernel stack swapping support, part 7
Remove some uses of PHOLD which were there only to prevent the process' threads from being swapped out. Tested by: pho Reviewed by: imp, kib Differential Revision: https://reviews.freebsd.org/D46118
Diffstat (limited to 'sys/compat/linuxkpi/common')
-rw-r--r--sys/compat/linuxkpi/common/src/linux_schedule.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_schedule.c b/sys/compat/linuxkpi/common/src/linux_schedule.c
index 66b339bfbdbd..3349a4aa8d72 100644
--- a/sys/compat/linuxkpi/common/src/linux_schedule.c
+++ b/sys/compat/linuxkpi/common/src/linux_schedule.c
@@ -268,11 +268,6 @@ linux_wait_event_common(wait_queue_head_t *wqh, wait_queue_t *wq, int timeout,
task = current;
- /*
- * Our wait queue entry is on the stack - make sure it doesn't
- * get swapped out while we sleep.
- */
- PHOLD(task->task_thread->td_proc);
sleepq_lock(task);
if (atomic_read(&task->state) != TASK_WAKING) {
ret = linux_add_to_sleepqueue(task, task, "wevent", timeout,
@@ -281,7 +276,6 @@ linux_wait_event_common(wait_queue_head_t *wqh, wait_queue_t *wq, int timeout,
sleepq_release(task);
ret = 0;
}
- PRELE(task->task_thread->td_proc);
if (lock != NULL)
spin_lock_irq(lock);