]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
14 years agoAdd support for 'make -s' silent builds
Brian Behlendorf [Fri, 26 Mar 2010 22:21:06 +0000 (15:21 -0700)]
Add support for 'make -s' silent builds

The cleanest way to do this is to set AM_LIBTOOLFLAGS = --silent.  However,
AM_LIBTOOLFLAGS is not honored by automake-1.9.6-2.1 which is what I have
been using.  To cleanly handle this I am updating to automake-1.11-3 which
is why it looks like there is a lot of churn in the Makefiles.

14 years agoAllow spl_config.h to be included by dependant packages (updated)
Brian Behlendorf [Mon, 22 Mar 2010 21:45:33 +0000 (14:45 -0700)]
Allow spl_config.h to be included by dependant packages (updated)

We need dependent packages to be able to include spl_config.h to
build properly.  This was partially solved in commit 0cbaeb1 by using
AH_BOTTOM to #undef common #defines (PACKAGE, VERSION, etc) which
autoconf always adds and cannot be easily removed.  This solution
works as long as the spl_config.h is included before your projects
config.h.  That turns out to be easier said than done.  In particular,
this is a problem when your package includes its config.h using the
-include gcc option which ensures the first thing included is your
config.h.

To handle all cases cleanly I have removed the AH_BOTTOM hack and
replaced it with an AC_CONFIG_HEADERS command.  This command runs
immediately after spl_config.h is written and with a little awk-foo
it strips the offending #defines from the file.  This eliminates
the problem entirely and makes header safe for inclusion.

Also in this change I have removed the few places in the code where
spl_config.h is included.  It is now added to the gcc compile line
to ensure the config results are always available.

Finally, I have also disabled the verbose kernel builds.  If you
want them back you can always build with 'make V=1'.  Since things
are working now they don't need to be on by default.

14 years agoReduce max kmem based slab size
Brian Behlendorf [Thu, 18 Mar 2010 20:39:51 +0000 (13:39 -0700)]
Reduce max kmem based slab size

Allowing MAX_ORDER-1 sized allocations for kmem based slabs have
been observed to result in deadlocks.  To help prvent this limit
max kmem based slab size to MAX_ORDER-3.  Just for the record
callers should not be creating slabs like this, but if they do
we should still handle it as safely as we can.

14 years agoPrep for 0.4.8 tag, updated META and ChangeLog
Brian Behlendorf [Thu, 11 Mar 2010 23:36:50 +0000 (15:36 -0800)]
Prep for 0.4.8 tag, updated META and ChangeLog

14 years agoIgnore unsigned module build products
Brian Behlendorf [Thu, 11 Mar 2010 22:29:17 +0000 (14:29 -0800)]
Ignore unsigned module build products

Along with the addition of signed kernel modules in newer kernel
we have a few new build products we need to ignore.   LKLM has the
whole thread for those interested: http://lkml.org/lkml/2007/2/14/164

14 years agoFix definitions for the unknown distro/installation
Brian J. Murrell [Mon, 8 Mar 2010 23:12:22 +0000 (15:12 -0800)]
Fix definitions for the unknown distro/installation

If the distro/installation really is unsupported (i.e. unknown) we should
not make it look like a known distribution (i.e. RHEL) complete with
dependencies on other RPMs and trying to find kenrel source in the RH
standard location.

Additionally add 'k' prefix for kernel requires for consistency.

14 years agoWhen no kernel source has been pointed to, first attempt to use
Brian J. Murrell [Mon, 8 Mar 2010 22:19:30 +0000 (14:19 -0800)]
When no kernel source has been pointed to, first attempt to use
/lib/modules/$(uname -r)/source.  This will likely fail when building
under a mock (http://fedoraproject.org/wiki/Projects/Mock) chroot
environment since `uname -r` will report the running kernel which
likely is not the kernel in your chroot.  To cleanly handle this
we fallback to using the first kernel in your chroot.

The kernel-devel package which contains all the kernel headers and
a few build products such as Module.symver{s} is all the is required.
Full source is not needed.

14 years agoRemove Module.markers and Module.symver{s} in clean target
Brian Behlendorf [Mon, 8 Mar 2010 21:08:09 +0000 (13:08 -0800)]
Remove Module.markers and Module.symver{s} in clean target

Split 'modules' and 'clean' Makefile targets to allow us to
cleanly remove the Module.* build products with a 'make clean'.

14 years agoLinux 2.6.32 compat, proc_handler() API change
Brian Behlendorf [Thu, 4 Mar 2010 20:14:56 +0000 (12:14 -0800)]
Linux 2.6.32 compat, proc_handler() API change

As of linux-2.6.32 the 'struct file *filp' argument was dropped from
the proc_handle() prototype.  It was apparently unused _almost_
everywhere in the kernel and this was simply cleanup.

I've added a new SPL_AC_5ARGS_PROC_HANDLER autoconf check for this and
the proper compat macros to correctly define the prototypes and some
helper functions.  It's not pretty but API compat changes rarely are.

14 years agosun-misc-gitignore
Ricardo M. Correia [Fri, 8 Jan 2010 01:19:49 +0000 (01:19 +0000)]
sun-misc-gitignore

Add .gitignore files.

Signed-off-by: Ricardo M. Correia <Ricardo.M.Correia@Sun.COM>
14 years agosun-fix-whitespace
Ricardo M. Correia [Thu, 7 Jan 2010 16:58:30 +0000 (16:58 +0000)]
sun-fix-whitespace

Whitespace fixes.

Signed-off-by: Ricardo M. Correia <Ricardo.M.Correia@Sun.COM>
14 years agosun-fix-panic-str
Ricardo M. Correia [Thu, 7 Jan 2010 16:58:29 +0000 (16:58 +0000)]
sun-fix-panic-str

Fix panic() string, which was being used as a format string, instead of an already-formatted string.

Signed-off-by: Ricardo M. Correia <Ricardo.M.Correia@Sun.COM>
14 years agoAdded splat taskq task ordering test case.
Brian Behlendorf [Tue, 5 Jan 2010 21:34:09 +0000 (13:34 -0800)]
Added splat taskq task ordering test case.

This test case verifies the correct behavior of taskq_wait_id().
In particular it ensure the the following two cases are handled
properly:

1) Task ids larger than the waited for task id can run and
   complete as long as there is an available worker thread.
2) All task ids lower than the waited one must complete before
   unblocking even if the waited task id itself has completed.

14 years agoOptimize lowest outstanding taskqid calculation in taskq_lowest_id()
Brian Behlendorf [Mon, 4 Jan 2010 23:52:26 +0000 (15:52 -0800)]
Optimize lowest outstanding taskqid calculation in taskq_lowest_id()

In the initial version of taskq_lowest_id() the entire pending and
work list was locked under the tq->tq_lock to determine the lowest
outstanding taskqid.  At the time this done because I was rushed
and wanted to make sure it was right... fast was secondary.  Well now
fast is important too so I carefully thought through the pending
and work list management and convinced myself it is safe and correct
to simply check the first entry.  I added a large comment to the source
to explain this.  But basically as long as we are careful to ensure the
pending and work list stay sorted this is safe and fast.

The motivation for this chance was that I was observing as much as
10% of the total CPU time go to waiting on the tq->tq_lock when the
pending list was long.  This resolves that problems and frees up
that CPU time for something useful.

14 years agoStrip __GFP_ZERO from kmalloc it is not available for older kernels.
Brian Behlendorf [Wed, 23 Dec 2009 20:57:10 +0000 (12:57 -0800)]
Strip __GFP_ZERO from kmalloc it is not available for older kernels.

This is needed to avoid a BUG_ON() on RHEL5.4 kernel 2.6.18-164.6.1,
since __GFP_ZERO is not a valid flag for kmalloc().

14 years agoFix kmem:slab_overcommit regression test locking
Brian Behlendorf [Wed, 23 Dec 2009 20:46:11 +0000 (12:46 -0800)]
Fix kmem:slab_overcommit regression test locking

This regression test could crash in splat_kmem_cache_test_reclaim()
due to a race between the slab relclaim and the normal exiting of
the thread.  Specifically, the kct structure could be free'd by
the thread performing the allocations while the reclaim function
was also working on that's threads kct structure.  The simplest
fix is to extend the kcp->kcp_lock over the reclaim to prevent
the kct from being freed.  A better fix would be to ref count
these structures, but since is just a regression this locking
change is enough.  Surprisingly this was only observed commonly
under RHEL5.4 but all platform could have hit this.

14 years agoCheck for changed gaurd macro in 2.6.28+ for rwsem implementation.
Brian Behlendorf [Thu, 17 Dec 2009 19:57:44 +0000 (11:57 -0800)]
Check for changed gaurd macro in 2.6.28+ for rwsem implementation.

As part of the 2.6.28 cleanup which moved all the linux/include/asm/
headers in to linux/arch, the guard headers for many header files
changed.  The i386 rwsem implementation keys off this header to
ensure the internal members of the rwsem structure are interpreted
correctly.  This change checks for the new guard macro in addition
to the only one, the implementation of the rwsem has not changed
for i386 so this is safe and correct.

14 years agoAdd skc_flags and full header to /proc/spl/kmem/slab.
Brian Behlendorf [Fri, 11 Dec 2009 19:20:08 +0000 (11:20 -0800)]
Add skc_flags and full header to /proc/spl/kmem/slab.

14 years agoSplat vnode tests must return negative error codes.
Brian Behlendorf [Thu, 10 Dec 2009 23:06:07 +0000 (15:06 -0800)]
Splat vnode tests must return negative error codes.

I must have been in a hurry when I wrote the vnode regression tests
because the error code handling is not correct.  The Solaris vnode
API returns positive errno's, these need to be converted to negative
errno's for Linux before being passed back to user space.  Otherwise
the test hardness with report the failure but errno will not be set
with the correct error code.

Additionally tests 3, 4, 6, and 7 may fail in the test file already
exists.  To avoid false positives a user mode helper has added to
remove the test files in /tmp/ before running the actual test.

14 years agoAtomic64 compatibility for 32-bit systems without kernel support.
Brian Behlendorf [Fri, 4 Dec 2009 23:54:12 +0000 (15:54 -0800)]
Atomic64 compatibility for 32-bit systems without kernel support.

This patch is another step towards updating the code to handle the
32-bit kernels which I have not been regularly testing.  This changes
do not really impact the common case I'm expected which is the latest
kernel running on an x86_64 arch.

Until the linux-2.6.31 kernel the x86 arch did not have support for
64-bit atomic operations.  Additionally, the new atomic_compat.h support
for this case was wrong because it embedded a spinlock in the atomic
variable which must always and only be 64-bits total.  To handle these
32-bit issues we now simply fall back to the --enable-atomic-spinlock
implementation if the kernel does not provide the 64-bit atomic funcs.

The second issue this patch addresses is the DEBUG_KMEM assumption that
there will always be atomic64 funcs available.  On 32-bit archs this may
not be true, and actually that's just fine.  In that case the kernel will
will never be able to allocate more the 32-bits worth anyway.  So just
check if atomic64 funcs are available, if they are not it means this
is a 32-bit machine and we can safely use atomic_t's instead.

14 years agoCorrectly handle division on 32-bit RHEL5 systems by returning dividend.
Brian Behlendorf [Tue, 1 Dec 2009 23:53:28 +0000 (15:53 -0800)]
Correctly handle division on 32-bit RHEL5 systems by returning dividend.

14 years agoWhen using x86 specific rwsem correctly intepret rwsem->count.
Brian Behlendorf [Tue, 1 Dec 2009 23:47:27 +0000 (15:47 -0800)]
When using x86 specific rwsem correctly intepret rwsem->count.

14 years agoOnly run the kmem overcommit test on 64-bit systems.
Brian Behlendorf [Tue, 1 Dec 2009 19:40:47 +0000 (11:40 -0800)]
Only run the kmem overcommit test on 64-bit systems.

14 years agoAdd missing atomic64 compat helpers for 32-bit systems.
Brian Behlendorf [Tue, 1 Dec 2009 18:15:27 +0000 (10:15 -0800)]
Add missing atomic64 compat helpers for 32-bit systems.

The use of these functions was added with the recent atomic work
and not tested on 32-bit systems.  Add the missing compat functions:
atomic64_inc, atomic64_dec, atomic64_add_return, atomic64_sub_return,
atomic64_inc_return, atomic64_dec_return.

14 years agoType long expected explicitly cast for 32-bit systems.
Brian Behlendorf [Tue, 1 Dec 2009 18:14:01 +0000 (10:14 -0800)]
Type long expected explicitly cast for 32-bit systems.

14 years agospl-modules-devel package must depend on the exact version of kernel
Brian Behlendorf [Tue, 24 Nov 2009 23:24:36 +0000 (15:24 -0800)]
spl-modules-devel package must depend on the exact version of kernel
devel package it was built against.

14 years agoAdd 'srpm' --with-config option for creation of spec files.
Brian Behlendorf [Tue, 24 Nov 2009 22:21:45 +0000 (14:21 -0800)]
Add 'srpm' --with-config option for creation of spec files.

14 years agoAdd chaos5 and rhel6 macro's to the spl-modules.spec.in
Brian Behlendorf [Tue, 24 Nov 2009 21:15:35 +0000 (13:15 -0800)]
Add chaos5 and rhel6 macro's to the spl-modules.spec.in

14 years agoPrep for 0.4.7 tag, updated META and ChangeLog.
Brian Behlendorf [Sat, 21 Nov 2009 00:52:29 +0000 (16:52 -0800)]
Prep for 0.4.7 tag, updated META and ChangeLog.

14 years agoEnsure *.order and *.markers build products are removed by distclean rule.
Brian Behlendorf [Sat, 21 Nov 2009 00:01:00 +0000 (16:01 -0800)]
Ensure *.order and *.markers build products are removed by distclean rule.

14 years agoEnsure spl_config.h is include in spl-generic.c
Brian Behlendorf [Sun, 15 Nov 2009 23:04:33 +0000 (15:04 -0800)]
Ensure spl_config.h is include in spl-generic.c

14 years agoAlways use the generic mutex_destroy().
Brian Behlendorf [Sun, 15 Nov 2009 23:04:02 +0000 (15:04 -0800)]
Always use the generic mutex_destroy().

14 years agoAdd mutex_enter_nested() as wrapper for mutex_lock_nested().
Brian Behlendorf [Sun, 15 Nov 2009 22:27:15 +0000 (14:27 -0800)]
Add mutex_enter_nested() as wrapper for mutex_lock_nested().

This symbol can be used by GPL modules which use the SPL to handle
cases where a call path takes a two different locks by the same
name.  This is needed to avoid a false positive in the lock checker.

14 years agoLinux 2.6.31 kmem cache alignment fixes and cleanup.
Brian Behlendorf [Fri, 13 Nov 2009 19:12:43 +0000 (11:12 -0800)]
Linux 2.6.31 kmem cache alignment fixes and cleanup.

The big fix here is the removal of kmalloc() in kv_alloc().  It used
to be true in previous kernels that kmallocs over PAGE_SIZE would
always be pages aligned.  This is no longer true atleast in 2.6.31
there are no longer any alignment expectations.  Since kv_alloc()
requires the resulting address to be page align we no only either
directly allocate pages in the KMC_KMEM case, or directly call
__vmalloc() both of which will always return a page aligned address.
Additionally, to avoid wasting memory size is always a power of two.

As for cleanup several helper functions were introduced to calculate
the aligned sizes of various data structures.  This helps ensure no
case is accidentally missed where the alignment needs to be taken in
to account.  The helpers now use P2ROUNDUP_TYPE instead of P2ROUNDUP
which is safer since the type will be explict and we no longer count
on the compiler to auto promote types hopefully as we expected.

Always wnforce minimum (SPL_KMEM_CACHE_ALIGN) and maximum (PAGE_SIZE)
alignment restrictions at cache creation time.

Use SPL_KMEM_CACHE_ALIGN in splat alignment test.

14 years agoRemove __GFP_NOFAIL in kmem and retry internally.
Brian Behlendorf [Thu, 12 Nov 2009 23:11:24 +0000 (15:11 -0800)]
Remove __GFP_NOFAIL in kmem and retry internally.

As of 2.6.31 it's clear __GFP_NOFAIL should no longer be used and it
may disappear from the kernel at any time.  To handle this I have simply
added *_nofail wrappers in the kmem implementation which perform the
retry for non-atomic allocations.

From linux-2.6.31 mm/page_alloc.c:1166
/*
 * __GFP_NOFAIL is not to be used in new code.
 *
 * All __GFP_NOFAIL callers should be fixed so that they
 * properly detect and handle allocation failures.
 *
 * We most definitely don't want callers attempting to
 * allocate greater than order-1 page units with
 * __GFP_NOFAIL.
 */
WARN_ON_ONCE(order > 1);

14 years agoLinux 2.6.31 Compatibility Updates
Brian Behlendorf [Tue, 10 Nov 2009 22:06:57 +0000 (14:06 -0800)]
Linux 2.6.31 Compatibility Updates

SPL_AC_2ARGS_SET_FS_PWD macro updated to explicitly include
linux/fs_struct.h which was dropped from linux/sched.h.

min_wmark_pages, low_wmark_pages, high_wmark_pages macros
introduced in newer kernels.  For older kernels mm_compat.h
was introduced to define them as needed as direct mappings
to per zone min_pages, low_pages, max_pages.

14 years agoPrep for 0.4.6 tag, updated META and ChangeLog.
Brian Behlendorf [Mon, 2 Nov 2009 18:24:12 +0000 (10:24 -0800)]
Prep for 0.4.6 tag, updated META and ChangeLog.

14 years agoAutoconf --enable-debug-* cleanup
Brian Behlendorf [Fri, 30 Oct 2009 20:58:51 +0000 (13:58 -0700)]
Autoconf --enable-debug-* cleanup

Cleanup the --enable-debug-* configure options, this has been pending
for quite some time and I am glad I finally got to it.  To summerize:

1) All SPL_AC_DEBUG_* macros were updated to be a more autoconf
friendly.  This mainly involved shift to the GNU approved usage of
AC_ARG_ENABLE and ensuring AS_IF is used rather than directly using
an if [ test ] construct.

2) --enable-debug-kmem=yes by default.  This simply enabled keeping
a running tally of total memory allocated and freed and reporting a
memory leak if there was one at module unload.  Additionally, it
ensure /proc/spl/kmem/slab will exist by default which is handy.
The overhead is low for this and it should not impact performance.

3) --enable-debug-kmem-tracking=no by default.  This option was added
to provide a configure option to enable to detailed memory allocation
tracking.  This support was always there but you had to know where to
turn it on.  By default this support is disabled because it is known
to badly hurt performence, however it is invaluable when chasing a
memory leak.

4) --enable-debug-kstat removed.  After further reflection I can't see
why you would ever really want to turn this support off.  It is now
always on which had the nice side effect of simplifying the proc handling
code in spl-proc.c.  We can now always assume the top level directory
will be there.

5) --enable-debug-callb removed.  This never really did anything, it was
put in provisionally because it might have been needed.  It turns out
it was not so I am just removing it to prevent confusion.

14 years agoAdd autoconf checks for atomic64_cmpxchg + atomic64_xchg
Brian Behlendorf [Fri, 30 Oct 2009 20:53:17 +0000 (13:53 -0700)]
Add autoconf checks for atomic64_cmpxchg + atomic64_xchg

These functions didn't exist for all archs prior to 2.6.24.  This
patch addes an autoconf test to detect this and add them when needed.
The autoconf check is needed instead of just an #ifndef because in
the most modern kernels atomic64_{cmp}xchg are implemented as in
inline function and not a #define.

14 years agoUse Linux atomic primitives by default.
Brian Behlendorf [Fri, 30 Oct 2009 17:55:25 +0000 (10:55 -0700)]
Use Linux atomic primitives by default.

Previously Solaris style atomic primitives were implemented simply by
wrapping the desired operation in a global spinlock.  This was easy to
implement at the time when I wasn't 100% sure I could safely layer the
Solaris atomic primatives on the Linux counterparts.  It however was
likely not good for performance.

After more investigation however it does appear the Solaris primitives
can be layered on Linux's fairly safely.  The Linux atomic_t type really
just wraps a long so we can simply cast the Solaris unsigned value to
either a atomic_t or atomic64_t.  The only lingering problem for both
implementations is that Solaris provides no atomic read function.  This
means reading a 64-bit value on a 32-bit arch can (and will) result in
word breaking.  I was very concerned about this initially, but upon
further reflection it is a limitation of the Solaris API.  So really
we are just being bug-for-bug compatible here.

With this change the default implementation is layered on top of Linux
atomic types.  However, because we're assuming a lot about the internal
implementation of those types I've made it easy to fall-back to the
generic approach.  Simply build with --enable-atomic_spinlocks if
issues are encountered with the new implementation.

14 years agoI should not have removed these, they are important.
Brian Behlendorf [Tue, 27 Oct 2009 23:17:06 +0000 (16:17 -0700)]
I should not have removed these, they are important.

14 years agoRebase cmn_err on vcmn_err and don't warn about missing \n
Brian Behlendorf [Tue, 27 Oct 2009 22:54:45 +0000 (15:54 -0700)]
Rebase cmn_err on vcmn_err and don't warn about missing \n

The cmn_err/vcmn_err functions are layered on top of the debug
system which usually expects a newline at the end.  However, there
really doesn't need to be a newline there and there in fact should
not be for the CE_CONT case so let's just drop the warning.

Also we make a half-hearted attempt to handle a leading ! which
means only send it to the syslog not the console.  In this case
we just send to the the debug logs and not the console.

14 years agoRemove usage of the __id_u macro for portability.
Brian Behlendorf [Mon, 5 Oct 2009 19:51:58 +0000 (12:51 -0700)]
Remove usage of the __id_u macro for portability.

This macro was removed from the default RPM macro file.  Interestly,
some of the arch specific macro's add it back it based on your distro
but it should not be counted on.  However, __id still exists and its
command line args have historically been fairly stable so we will
directly use %{__id} -un to get the user name.

14 years agoUse kobject_set_name() for increased portability.
Brian Behlendorf [Fri, 2 Oct 2009 23:21:59 +0000 (16:21 -0700)]
Use kobject_set_name() for increased portability.

As of 2.6.25 kobj->k_name was replaced with kobj->name.  Some distros
such as RHEL5 (2.6.18) add a patch to prevent this from being a problem
but other older distros such as SLES10 (2.6.16) have not.  To avoid
the whole issue I'm updating the code to use kobject_set_name() which
does what I want and has existed all the way back to 2.6.11.

14 years agoSet cwd to '/' for the process executing insmod.
Brian Behlendorf [Thu, 1 Oct 2009 23:06:15 +0000 (16:06 -0700)]
Set cwd to '/' for the process executing insmod.

Ricardo has pointed out that under Solaris the cwd is set to '/'
during module load, while under Linux it is set to the callers cwd.
To handle this cleanly I've reworked the module *_init()/_exit()
macros so they call a *_setup()/_cleanup() function when any SPL
dependent module is loaded or unloaded.  This gives us a chance to
perform any needed modification of the process, in this case changing
the cwd.  It also handily provides a way to avoid creating wrapper
init()/exit() functions because the Solaris and Linux prototypes
differ slightly.  All dependent modules should now call the spl
helper macros spl_module_{init,exit}() instead of the native linux
versions.

Unfortunately, it appears that under Linux there has been no consistent
API in the kernel to set the cwd in a module.  Because of this I have
had to add more autoconf magic than I'd like.  However, what I have
done is correct and has been tested on RHEL5, SLES11, FC11, and CHAOS
kernels.

In addition, I have change the rootdir type from a 'void *' to the
correct 'vnode_t *' type.  And I've set rootdir to a non-NULL value.

14 years agoExpand SEM() outside init_rwsem and directly call __init_rwsem().
Brian Behlendorf [Tue, 29 Sep 2009 10:19:09 +0000 (03:19 -0700)]
Expand SEM() outside init_rwsem and directly call __init_rwsem().

We need to directly call __init_rwsem() or the name gets expanded
to SEM(lock-name).  This is safe and correct for the support arches
x86/x86_64/ppc/ppc64.

14 years agoReimplement mutexs for Linux lock profiling/analysis
Brian Behlendorf [Fri, 25 Sep 2009 21:47:01 +0000 (14:47 -0700)]
Reimplement mutexs for Linux lock profiling/analysis

For a generic explanation of why mutexs needed to be reimplemented
to work with the kernel lock profiling see commits:
  e811949a57044d60d12953c5c3b808a79a7d36ef and
  d28db80fd0fd4fd63aec09037c44408e51a222d6

The specific changes made to the mutex implemetation are as follows.
The Linux mutex structure is now directly embedded in the kmutex_t.
This allows a kmutex_t to be directly case to a mutex struct and
passed directly to the Linux primative.

Just like with the rwlocks it is critical that these functions be
implemented as '#defines to ensure the location information is
preserved.  The preprocessor can then do a direct replacement of
the Solaris primative with the linux primative.

Just as with the rwlocks we need to track the lock owner.  Here
things get a little more interesting because depending on your
kernel version, and how you've built your kernel Linux may already
do this for you.  If your running a 2.6.29 or newer kernel on a
SMP system the lock owner will be tracked.  This was added to Linux
to support adaptive mutexs, more on that shortly.  Alternately, your
kernel might track the lock owner if you've set CONFIG_DEBUG_MUTEXES
in the kernel build.  If neither of the above things is true for
your kernel the kmutex_t type will include and track the lock owner
to ensure correct behavior.  This is all handled by a new autoconf
check called SPL_AC_MUTEX_OWNER.

Concerning adaptive mutexs these are a very recent development and
they did not make it in to either the latest FC11 of SLES11 kernels.
Ideally, I'd love to see this kernel change appear in one of these
distros because it does help performance.  From Linux kernel commit:
  0d66bf6d3514b35eb6897629059443132992dbd7
  "Testing with Ingo's test-mutex application...
  gave a 345% boost for VFS scalability on my testbox"
However, if you don't want to backport this change yourself you
can still simply export the task_curr() symbol.  The kmutex_t
implementation will use this symbol when it's available to
provide it's own adaptive mutexs.

Finally, DEBUG_MUTEX support was removed including the proc handlers.
This was done because now that we are cleanly integrated with the
kernel profiling all this information and much much more is available
in debug kernel builds.  This code was now redundant.

Update mutexs validated on:
    - SLES10   (ppc64)
    - SLES11   (x86_64)
    - CHAOS4.2 (x86_64)
    - RHEL5.3  (x86_64)
    - RHEL6    (x86_64)
    - FC11     (x86_64)

14 years agoUpdate rwlocks to track owner to ensure correct semantics
Brian Behlendorf [Fri, 25 Sep 2009 21:14:35 +0000 (14:14 -0700)]
Update rwlocks to track owner to ensure correct semantics

The behavior of RW_*_HELD was updated because it was not quite right.
It is not sufficient to return non-zero when the lock is help, we must
only do this when the current task in the holder.

This means we need to track the lock owner which is not something
tracked in a Linux semaphore.  After some experimentation the
solution I settled on was to embed the Linux semaphore at the start
of a larger krwlock_t structure which includes the owner field.
This maintains good performance and allows us to cleanly intergrate
with the kernel lock analysis tools.  My reasons:

1) By placing the Linux semaphore at the start of krwlock_t we can
then simply cast krwlock_t to a rw_semaphore and pass that on to
the linux kernel.  This allows us to use '#defines so the preprocessor
can do direct replacement of the Solaris primative with the linux
equivilant.  This is important because it then maintains the location
information for each rw_* call point.

2) Additionally, by adding the owner to krwlock_t we can keep this
needed extra information adjacent to the lock itself.  This removes
the need for a fancy lookup to get the owner which is optimal for
performance.  We can also leverage the existing spin lock in the
semaphore to ensure owner is updated correctly.

3) All helper functions which do not need to strictly be implemented
as a define to preserve location information can be done as a static
inline function.

4) Adding the owner to krwlock_t allows us to remove all memory
allocations done during lock initialization.  This is good for all
the obvious reasons, we do give up the ability to specific the lock
name.  The Linux profiling tools will stringify the lock name used
in the code via the preprocessor and use that.

Update rwlocks validated on:
- SLES10   (ppc64)
- SLES11   (x86_64)
- CHAOS4.2 (x86_64)
- RHEL5.3  (x86_64)
- RHEL6    (x86_64)
- FC11     (x86_64)

14 years agoReimplement rwlocks for Linux lock profiling/analysis.
Brian Behlendorf [Fri, 18 Sep 2009 23:09:47 +0000 (16:09 -0700)]
Reimplement rwlocks for Linux lock profiling/analysis.

It turns out that the previous rwlock implementation worked well but
did not integrate properly with the upstream kernel lock profiling/
analysis tools.  This is a major problem since it would be awfully
nice to be able to use the automatic lock checker and profiler.

The problem is that the upstream lock tools use the pre-processor
to create a lock class for each uniquely named locked.  Since the
rwsem was embedded in a wrapper structure the name was always the
same.  The effect was that we only ended up with one lock class for
the entire SPL which caused the lock dependency checker to flag
nearly everything as a possible deadlock.

The solution was to directly map a krwlock to a Linux rwsem using
a typedef there by eliminating the wrapper structure.  This was not
done initially because the rwsem implementation is specific to the arch.
To fully implement the Solaris krwlock API using only the provided rwsem
API is not possible.  It can only be done by directly accessing some of
the internal data member of the rwsem structure.

For example, the Linux API provides a different function for dropping
a reader vs writer lock.  Whereas the Solaris API uses the same function
and the caller does not pass in what type of lock it is.  This means to
properly drop the lock we need to determine if the lock is currently a
reader or writer lock.  Then we need to call the proper Linux API function.
Unfortunately, there is no provided API for this so we must extracted this
information directly from arch specific lock implementation.  This is
all do able, and what I did, but it does complicate things considerably.

The good news is that in addition to the profiling benefits of this
change.  We may see performance improvements due to slightly reduced
overhead when creating rwlocks and manipulating them.

The only function I was forced to sacrafice was rw_owner() because this
information is simply not stored anywhere in the rwsem.  Luckily this
appears not to be a commonly used function on Solaris, and it is my
understanding it is mainly used for debugging anyway.

In addition to the core rwlock changes, extensive updates were made to
the rwlock regression tests.  Each class of test was extended to provide
more API coverage and to be more rigerous in checking for misbehavior.

This is a pretty significant change and with that in mind I have been
careful to validate it on several platforms before committing.  The full
SPLAT regression test suite was run numberous times on all of the following
platforms.  This includes various kernels ranging from 2.6.16 to 2.6.29.

- SLES10   (ppc64)
- SLES11   (x86_64)
- CHAOS4.2 (x86_64)
- RHEL5.3  (x86_64)
- RHEL6    (x86_64)
- FC11     (x86_64)

14 years agoVarious spec file tweaks to handle rpm building of several distros.
Brian Behlendorf [Fri, 14 Aug 2009 21:09:16 +0000 (14:09 -0700)]
Various spec file tweaks to handle rpm building of several distros.
Supported and tested distros now include SLES10, SLES11, Chaos 4.x,
RHEL5, and Fedora 11.  This update was mainly to address rebuildable
kernel module rpms, and correct rpm dependencies for each distro.

14 years agoExplicit check for requires_* rpm defines
Brian Behlendorf [Thu, 13 Aug 2009 22:02:34 +0000 (15:02 -0700)]
Explicit check for requires_* rpm defines
Due to different distros and/or versions of rpm mishandling the shorthand
syntax simply use the longer version which get interpreted correctly.

14 years agoTag spl-0.4.5.
Brian Behlendorf [Tue, 4 Aug 2009 19:22:33 +0000 (12:22 -0700)]
Tag spl-0.4.5.
Update the ChangeLog with a summary of the changes since the last release
and update the META file to reflect the new version number.

14 years agoRequired missing symbols for FC11 kernels (2.6.29.4-167.fc11.x86_64)
Brian Behlendorf [Fri, 31 Jul 2009 19:44:34 +0000 (12:44 -0700)]
Required missing symbols for FC11 kernels (2.6.29.4-167.fc11.x86_64)

14 years agoDisable stack overflow checking by default.
Brian Behlendorf [Thu, 30 Jul 2009 20:52:11 +0000 (13:52 -0700)]
Disable stack overflow checking by default.
The run time stack overflow checking is being disabled by default
because it is not safe for use with 2.6.29 and latter kernels.  These
kernels do now have their own stack overflow checking so this support
has become redundant anyway.  It can be re-enabled for older kernels or
arches without stack overflow checking by redefining CHECK_STACK().

14 years agoUpdate global_page_state() support for 2.6.29 kernels.
Brian Behlendorf [Tue, 28 Jul 2009 22:06:42 +0000 (15:06 -0700)]
Update global_page_state() support for 2.6.29 kernels.
Basically everything we need to monitor the global memory state of
the system is now cleanly available via global_page_state().  The
problem is that this interface is still fairly recent, and there
has been one change in the page state enum which we need to handle.
These changes basically boil down to the following:
- If global_page_state() is available we should use it.  Several
  autoconf checks have been added to detect the correct enum names.
- If global_page_state() is not available check to see if
  get_zone_counts() symbol is available and use that.
- If the get_zone_counts() symbol is not exported we have no choice
  be to dynamically aquire it at load time.  This is an absolute
  last resort for old kernel which we don't want to patch to
  cleanly export the symbol.

14 years agoRemove get/put_task_struct as they are not available for SLES11
Brian Behlendorf [Tue, 28 Jul 2009 22:04:21 +0000 (15:04 -0700)]
Remove get/put_task_struct as they are not available for SLES11
This interface is going away, and it's not as if most callers actually
use crhold/crfree when working with credentials.  So it'll be okay
they we're not taking a reference on the task structure the odds of
it going away while working with a credential and pretty small.

14 years agoAdd basic credential support and splat tests.
Brian Behlendorf [Tue, 28 Jul 2009 00:18:59 +0000 (17:18 -0700)]
Add basic credential support and splat tests.
The previous credential implementation simply provided the needed types and
a couple of dummy functions needed.  This update correctly ties the basic
Solaris credential API in to one of two Linux kernel APIs.

Prior to 2.6.29 the linux kernel embeded all credentials in the task
structure.  For these kernels, we pass around the entire task struct as if
it were the credential, then we use the helper functions to extract the
credential related bits.

As of 2.6.29 a new credential type was added which we can and do fairly
cleanly layer on top of.  Once again the helper functions nicely hide
the implementation details from all callers.

Three tests were added to the splat test framework to verify basic
correctness.  They should be extended as needed when need credential
functions are added.

14 years agoRemove LINUXINCLUDE from autoconf wrapper, breaks 2.6.28+ kernels.
Brian Behlendorf [Mon, 27 Jul 2009 16:52:01 +0000 (09:52 -0700)]
Remove LINUXINCLUDE from autoconf wrapper, breaks 2.6.28+ kernels.
Modern kernel build systems at least post 2.6.16 will set this properly
so we should not.  In fact post 2.6.28 the include headers have moved
under arch so the guess we make here is completely wrong.  Letting
the kernel build system set this ensure it will be correct.

14 years agoPositive Solaris ioctl return codes need to be negated for use by libc
Brian Behlendorf [Thu, 23 Jul 2009 23:14:52 +0000 (16:14 -0700)]
Positive Solaris ioctl return codes need to be negated for use by libc

14 years agoAllow kmem or vmem based slab for slab_lock and slab_overcommit tests.
Brian Behlendorf [Thu, 23 Jul 2009 20:50:53 +0000 (13:50 -0700)]
Allow kmem or vmem based slab for slab_lock and slab_overcommit tests.
The slab_overcommit test case could hang on a system with fragmented
memory because it was creating a kmem based slab with 256K objects.
To avoid this I've removed the KMC_KMEM flag which allows the slab
to decide if it should be kmem or vmem backed based on the object
side.  The slab_lock test shares this code and will also be effected.
But the point of these two tests is to stress cache locking and
memory overcommit, the type of slab is not critical.  In fact, allowing
the slab to do the default smart thing is preferable.

14 years agoThe HAVE_PATH_IN_NAMEIDATA compat macros should have been used here.
Brian Behlendorf [Wed, 22 Jul 2009 21:28:19 +0000 (14:28 -0700)]
The HAVE_PATH_IN_NAMEIDATA compat macros should have been used here.

14 years agoCheck arch/default/ path when detecting kernel objects on SLES
Brian Behlendorf [Wed, 22 Jul 2009 13:59:28 +0000 (06:59 -0700)]
Check arch/default/ path when detecting kernel objects on SLES
We still preferentially use arch/arch looking for a native version
but if that fails it is acceptable to use default.

14 years agoRegister a basic compat ioctl handler (32 vs 64 bit compat)
Brian Behlendorf [Tue, 21 Jul 2009 17:13:58 +0000 (10:13 -0700)]
Register a basic compat ioctl handler (32 vs 64 bit compat)
Simply pass the ioctl on to the normal handler.  If the ioctl
helper macros are used correctly this should be safe as they
will handle the packing/unpacking of the data encoded in the
ioctl command.  And actually, if the caller does not use the
IO* macros at all, and just passes small values, it will probably
be OK as well.  We only get in to trouble if they try and use
the upper 32-bits.  Endianness is not really a concern here, we
we are pretty much assumed they user and kernel will match.

14 years agoFixed NULL dereference by tcd_for_each() when the kmalloc() call in module/spl/spl...
Ricardo M. Correia [Tue, 14 Jul 2009 22:24:59 +0000 (15:24 -0700)]
Fixed NULL dereference by tcd_for_each() when the kmalloc() call in module/spl/spl-debug.c:1163 returns NULL.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
14 years agoPrevent integer overflow after ~164 days of uptime.
Ricardo M. Correia [Tue, 14 Jul 2009 22:23:25 +0000 (15:23 -0700)]
Prevent integer overflow after ~164 days of uptime.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
14 years agoAdd a little paranoia here to ensure endianess is set correctly.
Brian Behlendorf [Tue, 14 Jul 2009 21:28:04 +0000 (14:28 -0700)]
Add a little paranoia here to ensure endianess is set correctly.

15 years agoAdd basic groupmember() function, not sup groups.
Brian Behlendorf [Fri, 10 Jul 2009 17:58:06 +0000 (10:58 -0700)]
Add basic groupmember() function, not sup groups.

15 years agoAdd ddi_copyin/ddi_copyout support for fake kernel originated ioctls.
Brian Behlendorf [Fri, 10 Jul 2009 17:56:32 +0000 (10:56 -0700)]
Add ddi_copyin/ddi_copyout support for fake kernel originated ioctls.

15 years agoDefine ACE_ALL_PERMS for use by ACLs
Brian Behlendorf [Thu, 9 Jul 2009 22:00:25 +0000 (15:00 -0700)]
Define ACE_ALL_PERMS for use by ACLs

15 years agoDefine FKIOCTL which is used on Solaris to mark an in-kernel ioctl.
Brian Behlendorf [Thu, 9 Jul 2009 21:59:41 +0000 (14:59 -0700)]
Define FKIOCTL which is used on Solaris to mark an in-kernel ioctl.

15 years agoAdd ASSERTV macro to simplify removing variables (the V in ASSERTV)
Brian Behlendorf [Thu, 9 Jul 2009 19:15:23 +0000 (12:15 -0700)]
Add ASSERTV macro to simplify removing variables (the V in ASSERTV)
which are only used in ASSERT().

15 years agoAdd basic support for TASKQ_THREADS_CPU_PCT taskq flag which is
Brian Behlendorf [Thu, 9 Jul 2009 17:07:52 +0000 (10:07 -0700)]
Add basic support for TASKQ_THREADS_CPU_PCT taskq flag which is
used to scale the number of threads based on the number of online
CPUs.  As CPUs are added/removed we should rescale the thread
count appropriately, but currently this is only done at create.

15 years agoUpdate ChangeLog
Brian Behlendorf [Thu, 2 Jul 2009 21:19:11 +0000 (14:19 -0700)]
Update ChangeLog

15 years agoCleanly handle --with-linux=NONE option when used to generate source
Brian Behlendorf [Thu, 2 Jul 2009 17:47:28 +0000 (10:47 -0700)]
Cleanly handle --with-linux=NONE option when used to generate source
rpms.  These should not be fatal because we actually don't need them
until we build the source rpm.  When doing mock builds this is
important because these dependent rpms will only be installed if
they are specificed in the source rpms spec file.

15 years agoSimplify rpm build rules, added config/rpm.am.
Brian Behlendorf [Wed, 1 Jul 2009 21:37:44 +0000 (14:37 -0700)]
Simplify rpm build rules, added config/rpm.am.
Distro friendly changes such that the kernel modules are packaged seperately.

15 years agoAdd spl.release to spl-devel to simply dependent package version check.
Brian Behlendorf [Mon, 29 Jun 2009 23:41:21 +0000 (16:41 -0700)]
Add spl.release to spl-devel to simply dependent package version check.

15 years agoInstall spl-devel products in /usr/src/spl-SPL_VERSION/LINUX_VERSION/
Brian Behlendorf [Fri, 26 Jun 2009 23:30:44 +0000 (16:30 -0700)]
Install spl-devel products in /usr/src/spl-SPL_VERSION/LINUX_VERSION/
Remove the spl symlink, it's just confusing

15 years agoUse do_div on older kernel where do_div64 doesn't exist.
Brian Behlendorf [Fri, 26 Jun 2009 20:10:52 +0000 (13:10 -0700)]
Use do_div on older kernel where do_div64 doesn't exist.

15 years agoAdditional tuning to get the BuildRequires right for all cases.
Brian Behlendorf [Fri, 26 Jun 2009 19:43:27 +0000 (12:43 -0700)]
Additional tuning to get the BuildRequires right for all cases.
pl.spec~

15 years agoSimplify the kernel depenency logic
Brian Behlendorf [Fri, 26 Jun 2009 18:37:06 +0000 (11:37 -0700)]
Simplify the kernel depenency logic

15 years agoSpec file update, for some reason the following shorthand syntax
Brian Behlendorf [Fri, 26 Jun 2009 17:34:40 +0000 (10:34 -0700)]
Spec file update, for some reason the following shorthand syntax
was failing so it was replaced with the longer %if version.

%{!?foo: %define foo bar}

changed to

%if %{undefined foo}
 %define foo bar
%endif

15 years agoSRPM build farm / mock itergration
Brian Behlendorf [Fri, 26 Jun 2009 16:40:14 +0000 (09:40 -0700)]
SRPM build farm / mock itergration

15 years agoBuild farm integration to ensure BuildRequires are correct
Brian Behlendorf [Thu, 25 Jun 2009 23:11:13 +0000 (16:11 -0700)]
Build farm integration to ensure BuildRequires are correct

15 years agoPackaging Fixes
Brian Behlendorf [Thu, 25 Jun 2009 22:31:53 +0000 (15:31 -0700)]
Packaging Fixes
- Kernel modules should be built using the LINUX_OBJ Makefiles and
  not the LINUX Makefiles to ensure the proper install paths are used.
- Install modules in to addon/spl/
- Ensure no additional kernel module build products are packaged.
- Simplified spl.spec.in which supports RHEL, CHAOS, SLES, FEDORA.

15 years agoUpdate ChangeLog with a high level summary of the changes from
Brian Behlendorf [Mon, 22 Jun 2009 22:31:40 +0000 (15:31 -0700)]
Update ChangeLog with a high level summary of the changes from
0.4.3 to 0.4.4 prior to tagging.  Full details can be found in
the git commit history.

15 years agoPackaging improvements for RHEL and SLES (part 2)
Brian Behlendorf [Tue, 16 Jun 2009 18:34:28 +0000 (11:34 -0700)]
Packaging improvements for RHEL and SLES (part 2)
- Allow checking for exported symbols in both Module.symvers
  and Module.symvers.  My stock SLES kernel ships an objects
  directory with Module.symvers, yet produces a Module.symvers
  in the local build directory.

15 years agoPackaging improvements for RHEL and SLES
Brian Behlendorf [Tue, 16 Jun 2009 17:44:59 +0000 (10:44 -0700)]
Packaging improvements for RHEL and SLES
- Properly honor --prefix in build system and rpm spec file.
- Add '--define require_kdir' to spec file to support building
  rpms against kernel sources installed in non-default locations.
- Add '--define require_kobj' to spec file to support building
  rpms against kernel object installed in non-default locations.
- Stop suppressing errors in autogen.sh script.
- Improved logic to detect missing kernel objects when they are
  not located with the source.  This is the common case for SLES
  as well as in-tree chaos kernel builds and is done to simply
  support for multiple arches.
- Moved spl-devel build products to /usr/src/spl-<version>, a
  spl symlink is created to reference the last installed version.

15 years agoSLES10 Fixes (part 9)
Brian Behlendorf [Thu, 21 May 2009 17:56:11 +0000 (10:56 -0700)]
SLES10 Fixes (part 9)
- Proper ioctl() 32/64-bit binary compatibility.  We need to ensure the
  ioctl data itself is always packed the same for 32/64-bit binaries.
  Additionally, the correct thing to do is encode this size in bytes
  as part of the command using _IOC_SIZE().
- Minor formatting changes to respect the 80 character limit.
- Move all SPLAT_SUBSYSTEM_* defines in to splat-ctl.h.
- Increase SPLAT_SUBSYSTEM_UNKNOWN because we were getting close
  to accidentally using it for a real registered subsystem.

15 years agoSLES10 Fixes (part 8)
Brian Behlendorf [Wed, 20 May 2009 23:33:08 +0000 (16:33 -0700)]
SLES10 Fixes (part 8)
- Add compat_ioctl() handler, by default 64-bit SLES systems build 32-bit
  ELF binaries.  For the 32-bit binaries to pass ioctl information to a
  64-bit kernel a compatibility handler needs to be registered.  In our
  case no additional conversions are needed to convert 32-bit ioctl()
  commands to 64-bit commands so we can just call the default handler.

15 years agoSLES10 Fixes (part 7)
Brian Behlendorf [Wed, 20 May 2009 22:30:13 +0000 (15:30 -0700)]
SLES10 Fixes (part 7)
- Initial SLES testing uncovered a long standing bug in the debug
  tracing.  The tcd_for_each() macro expected a NULL to terminate
  the trace_data[i] array but this was only ever true due to luck.
  All trace_data[] iterators are now properly capped by TCD_TYPE_MAX.
- SPLAT_MAJOR 229 conflicted with a 'hvc' device on my SLES system.
  Since this was always an arbitrary choice I picked something else.
- The HAVE_PGDAT_LIST case should set pgdat_list_addr to the value stored
  at the address of the memory location returned by kallsyms_lookup_name().

15 years agoSLES10 Fixes (part 6)
Brian Behlendorf [Wed, 20 May 2009 21:23:13 +0000 (14:23 -0700)]
SLES10 Fixes (part 6)
- Prior to 2.6.17 there were no *_pgdat helper functions in mm/mmzone.c.
  Instead for_each_zone() operated directly on pgdat_list which may or
  may not have been exported depending on how your kernel was compiled.
  Now new configure checks determine if you have the helpers or not, and
  if the needed symbols are exported.  If they are not exported then they
  are dynamically aquired at runtime by kallsyms_lookup_name().

15 years agoPowerpc Fixes (part 1):
Brian Behlendorf [Wed, 20 May 2009 19:23:24 +0000 (12:23 -0700)]
Powerpc Fixes (part 1):
- Enable builds for powerpc ISA type.
- Add DIV_ROUND_UP and roundup macros if unavailable.
- Cast 64-bit values for %lld format string to (long long) to
  quiet compile warning.

15 years agoSLES10 Fixes (part 5):
Brian Behlendorf [Wed, 20 May 2009 18:54:40 +0000 (11:54 -0700)]
SLES10 Fixes (part 5):
- Fix incorrect mapping for spl_device_create()->class_device_create()
  which is the prefered API for 2.6.13 to 2.6.17 based kernels.

15 years agoSLES10 Fixes (part 4):
Brian Behlendorf [Wed, 20 May 2009 18:31:55 +0000 (11:31 -0700)]
SLES10 Fixes (part 4):
- Configure check for SLES specific API change to vfs_unlink()
  and vfs_rename() which added a 'struct vfsmount *' argument.
  This was for something called the linux-security-module, but
  it appears that it was never adopted upstream.

15 years agoSLES10 Fixes (part 3):
Brian Behlendorf [Wed, 20 May 2009 17:56:13 +0000 (10:56 -0700)]
SLES10 Fixes (part 3):
- Configure check for mutex_lock_nested().  This function was introduced
  as part of the mutex validator in 2.6.18, but if it's unavailable then
  it's safe to fallback to a plain mutex_lock().

15 years agoSLES10 Fixes (part 2):
Brian Behlendorf [Wed, 20 May 2009 17:08:37 +0000 (10:08 -0700)]
SLES10 Fixes (part 2):
- Configure check, the div64_64() function was renamed to
  div64_u64() as of 2.6.26.
- Configure check, the global_page_state() fuction was introduced
  in 2.6.18 kernels.  The earlier 2.6.16 based SLES10 must not try
  and use it, thankfully get_zone_counts() is still available.
- To simplify debugging poison all symbols aquired dynamically
  using spl_kallsyms_lookup_name() with SYMBOL_POISON.
- Add console messages when the user mode helpers fail.
- spl_kmem_init_globals() use bit shifts instead of division.
- When the monotonic clock is unavailable __gethrtime() must perform
  the HZ division as an 'unsigned long long' because the SPL only
  implements __udivdi3(), and not __divdi3() for 'long long' division
  on 32-bit arches.

15 years agoSLES10 Fixes (part 1):
Brian Behlendorf [Tue, 19 May 2009 18:42:39 +0000 (11:42 -0700)]
SLES10 Fixes (part 1):
- Exclude -obj when detecting installed kernel source.
- Detect -obj directory for out of tree kernel builds.
- Allow kernel build system to set CC to ensure -m64 is set properly.
  This is an issue on 64-bit SLES systems which by default always
  build 32-bit binaries (unlike RHEL/Fedora which default to 64-bit)

15 years agoPrep for spl-0.4.3 tag.
Brian Behlendorf [Fri, 20 Mar 2009 21:48:30 +0000 (14:48 -0700)]
Prep for spl-0.4.3 tag.

15 years agoAdd list_move_tail() function.
Brian Behlendorf [Fri, 20 Mar 2009 04:40:07 +0000 (21:40 -0700)]
Add list_move_tail() function.

15 years agoRemove useless EOL white space padding from `splat -l` command.
Brian Behlendorf [Wed, 18 Mar 2009 18:56:42 +0000 (11:56 -0700)]
Remove useless EOL white space padding from `splat -l` command.