Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2017 14:02:47 +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: r315244 - head/sys/compat/linuxkpi/common/src
Message-ID:  <201703141402.v2EE2lWV070153@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Tue Mar 14 14:02:47 2017
New Revision: 315244
URL: https://svnweb.freebsd.org/changeset/base/315244

Log:
  Set "current" pointer for LinuxKPI interrupts and timer callbacks.
  
  MFC after:		1 week
  Sponsored by:		Mellanox Technologies

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

Modified: head/sys/compat/linuxkpi/common/src/linux_compat.c
==============================================================================
--- head/sys/compat/linuxkpi/common/src/linux_compat.c	Tue Mar 14 13:54:18 2017	(r315243)
+++ head/sys/compat/linuxkpi/common/src/linux_compat.c	Tue Mar 14 14:02:47 2017	(r315244)
@@ -999,6 +999,8 @@ linux_timer_callback_wrapper(void *conte
 {
 	struct timer_list *timer;
 
+	linux_set_current(curthread);
+
 	timer = context;
 	timer->function(timer->data);
 }
@@ -1343,6 +1345,8 @@ linux_irq_handler(void *ent)
 {
 	struct irq_ent *irqe;
 
+	linux_set_current(curthread);
+
 	irqe = ent;
 	irqe->handler(irqe->irq, irqe->arg);
 }



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