mirror_zfs/config
Olaf Faaland bf8abea4da Linux 4.11 compat: remove stub for __put_task_struct
Before kernel 2.6.29 credentials were embedded in task_structs, and zfs had
cases where one thread would need to refer to the credential of another thread,
forcing it to take a hold on the foreign thread's task_struct to ensure it was
not freed.

Since 2.6.29, the credential has been moved out of the task_struct into a
cred_t.

In addition, the mainline kernel originally did not export __put_task_struct()
but the RHEL5 kernel did, according to zfsonlinux/spl@e811949a57.  As of
2.6.39 the mainline kernel exports it.

There is no longer zfs code that takes or releases holds on a task_struct, and
so there is no longer any reference to __put_task_struct().

This affects the linux 4.11 kernel because the prototype for
__put_task_struct() is in a new include file (linux/sched/task.h) and so the
config check failed to detect the exported symbol.

Removing the unnecessary stub and corresponding config check.  This works on
kernels since the oldest one currently supported, 2.6.32 as shipped with
Centos/RHEL.

Reviewed-by: Chunwei Chen <david.chen@osnexus.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Olaf Faaland <faaland1@llnl.gov>
Closes #608
2017-03-20 17:43:45 -07:00
..
.gitignore Add config/compile to config/.gitignore 2014-10-31 16:26:44 -07:00
config.awk Allow spl_config.h to be included by dependant packages (updated) 2010-03-22 14:45:33 -07:00
deb.am Add --bump=0 to alien 2013-04-24 16:18:11 -07:00
rpm.am Support parallel build trees (VPATH builds) 2015-07-17 12:53:11 -07:00
Rules.am build: use CPPFLAGS 2013-04-02 11:07:11 -07:00
spl-build.m4 Linux 4.11 compat: remove stub for __put_task_struct 2017-03-20 17:43:45 -07:00
spl-meta.m4 Fix automatically generated release number 2016-09-21 13:44:32 -07:00
tgz.am Refresh RPM packaging 2013-03-18 15:31:54 -07:00