freebsd-dev/sys/compat/linuxkpi/common/include
Hans Petter Selasky 8600ba1aa9 Make sure the selrecord() function is only called from within system
polling contexts in the LinuxKPI.

After the kqueue() support was added to the LinuxKPI in r319409 the
Linux poll file operation will be used outside the system file polling
callback function, which can cause a NULL-pointer panic inside
selrecord() because curthread->td_sel is set to NULL. This patch moves
the selrecord() call away from poll_wait() and to the system file poll
callback function in the LinuxKPI, which essentially wraps the Linux
one. This is similar to what the cuse(3) module is currently doing.
Refer to sys/fs/cuse/*.[ch] for more details.

MFC after:		1 week
Sponsored by:		Mellanox Technologies
2017-06-01 16:49:48 +00:00
..
asm Add get_cpu() and put_cpu(). 2017-05-21 00:06:36 +00:00
linux Make sure the selrecord() function is only called from within system 2017-06-01 16:49:48 +00:00
net Add full VNET support to the inet_get_local_port_range() function in 2017-03-22 15:46:31 +00:00