Allow TASK_PARKED bit being set when going to sleep in the LinuxKPI.

Found by:	Johannes Lundberg <johalun0@gmail.com>
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2018-05-28 10:51:39 +00:00
parent 609169becc
commit 2a3ec12831

View File

@ -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);