From 2a3ec12831a7bb30480cf4200bcb0671cba0cb00 Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Mon, 28 May 2018 10:51:39 +0000 Subject: Allow TASK_PARKED bit being set when going to sleep in the LinuxKPI. Found by: Johannes Lundberg MFC after: 1 week Sponsored by: Mellanox Technologies --- sys/compat/linuxkpi/common/src/linux_schedule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/compat/linuxkpi') diff --git a/sys/compat/linuxkpi/common/src/linux_schedule.c b/sys/compat/linuxkpi/common/src/linux_schedule.c index 11602ddf9b11..665e2fdf6b31 100644 --- a/sys/compat/linuxkpi/common/src/linux_schedule.c +++ b/sys/compat/linuxkpi/common/src/linux_schedule.c @@ -47,7 +47,7 @@ linux_add_to_sleepqueue(void *wchan, struct task_struct *task, { int flags, ret; - MPASS((state & ~TASK_NORMAL) == 0); + MPASS((state & ~(TASK_PARKED | TASK_NORMAL)) == 0); flags = SLEEPQ_SLEEP | ((state & TASK_INTERRUPTIBLE) != 0 ? SLEEPQ_INTERRUPTIBLE : 0); -- cgit v1.3