Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2018 10:51:39 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334280 - head/sys/compat/linuxkpi/common/src
Message-ID:  <201805281051.w4SApdCn026711@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon May 28 10:51:39 2018
New Revision: 334280
URL: https://svnweb.freebsd.org/changeset/base/334280

Log:
  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

Modified:
  head/sys/compat/linuxkpi/common/src/linux_schedule.c

Modified: head/sys/compat/linuxkpi/common/src/linux_schedule.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_schedule.c	Mon May 28 09:41:44 2018	(r334279)
+++ head/sys/compat/linuxkpi/common/src/linux_schedule.c	Mon May 28 10:51:39 2018	(r334280)
@@ -47,7 +47,7 @@ linux_add_to_sleepqueue(void *wchan, struct task_struc
 {
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805281051.w4SApdCn026711>