Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Jun 2017 10:12:58 +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: r319620 - head/sys/compat/linuxkpi/common/src
Message-ID:  <201706061012.v56ACwu3034331@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Jun  6 10:12:58 2017
New Revision: 319620
URL: https://svnweb.freebsd.org/changeset/base/319620

Log:
  Fix init order in the LinuxKPI for IDR support after recent changes.
  
  CPU_FOREACH() is not available until SI_SUB_CPU at SI_ORDER_ANY
  when the LinuxKPI is loaded as part of the kernel.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

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

Modified: head/sys/compat/linuxkpi/common/src/linux_idr.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_idr.c	Tue Jun  6 09:43:28 2017	(r319619)
+++ head/sys/compat/linuxkpi/common/src/linux_idr.c	Tue Jun  6 10:12:58 2017	(r319620)
@@ -96,7 +96,7 @@ idr_preload_init(void *arg)
 		spin_lock_init(&lic->lock);
 	}
 }
-SYSINIT(idr_preload_init, SI_SUB_LOCK, SI_ORDER_FIRST, idr_preload_init, NULL);
+SYSINIT(idr_preload_init, SI_SUB_CPU, SI_ORDER_ANY, idr_preload_init, NULL);
 
 static void
 idr_preload_uninit(void *arg)



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