mirror_zfs/config
Brian Behlendorf 5f920fbee1 Retire MUTEX_OWNER checks
To minimize the size of a kmutex_t a MUTEX_OWNER check was added.
It allowed the kmutex_t wrapper to leverage the mutex owner which was
already stored in the mutex for certain kernel configurations.

The upside to this was that it reduced the size of the kmutex_t wrapper
structure by the size of a task_struct pointer (4/8 bytes).  The
downside was that two mutex implementations needed to be maintained.
Depending on your exact kernel configuration the correct one would
be selected.

Over the years this solution worked but it could be fragile since it
depending heavily on assumed kernel mutex implementation details.  For
example the SPL_AC_MUTEX_OWNER_TASK_STRUCT configure check needed to
be added when the kernel changed how the owner was stored.  It also
made the code more complicated than it needed to be.

Therefore, in the name of simplicity and portability this optimization
is being retired.  It will slightly increase the memory requirements
for a kmutex_t but only very slightly.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Issue #435
2015-03-03 10:13:33 -08: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 Set LANG to a reasonable default (C) 2014-06-10 14:50:11 -07:00
Rules.am build: use CPPFLAGS 2013-04-02 11:07:11 -07:00
spl-build.m4 Retire MUTEX_OWNER checks 2015-03-03 10:13:33 -08:00
spl-meta.m4 Make license compatibility checks consistent 2014-10-17 15:07:28 -07:00
tgz.am Refresh RPM packaging 2013-03-18 15:31:54 -07:00