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:
parent
609169becc
commit
2a3ec12831
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user