Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jun 2018 07:36:44 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r334759 - stable/11/sys/compat/linuxkpi/common/src
Message-ID:  <201806070736.w577aivs056653@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Thu Jun  7 07:36:44 2018
New Revision: 334759
URL: https://svnweb.freebsd.org/changeset/base/334759

Log:
  MFC r334280:
  Allow TASK_PARKED bit being set when going to sleep in the LinuxKPI.
  
  Found by:	Johannes Lundberg <johalun0@gmail.com>
  Sponsored by:	Mellanox Technologies

Modified:
  stable/11/sys/compat/linuxkpi/common/src/linux_schedule.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/compat/linuxkpi/common/src/linux_schedule.c
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/src/linux_schedule.c	Thu Jun  7 07:33:46 2018	(r334758)
+++ stable/11/sys/compat/linuxkpi/common/src/linux_schedule.c	Thu Jun  7 07:36:44 2018	(r334759)
@@ -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?201806070736.w577aivs056653>