~wip-kernel/ubuntu-wip-kernel/+git/openzfs-spl:spl-0.7-release

Last commit made on 2018-09-13
Get this branch:
git clone -b spl-0.7-release https://git.launchpad.net/~wip-kernel/ubuntu-wip-kernel/+git/openzfs-spl

Branch merges

Branch information

Name:
spl-0.7-release
Repository:
lp:~wip-kernel/ubuntu-wip-kernel/+git/openzfs-spl

Recent commits

a4b19aa... by Tony Hutter <email address hidden>

Tag spl-0.7.11

META file and changelog updated.

Signed-off-by: Tony Hutter <email address hidden>

28b8e8f... by Brian Behlendorf

Linux 4.18 compat: Kconfig

The kernel's top level Kconfig was updated in 4.18 such that it
no longer matches the expected pattern preventing the spl source
from being inserted. Simplify the existing logic to always insert
the entry at the end of the file since an exact location is not
required, unlike in the Makefile.

Signed-off-by: Brian Behlendorf <email address hidden>
Issue #7890

0235e53... by Tony Hutter <email address hidden>

Tag spl-0.7.10

META file and changelog updated.

Signed-off-by: Tony Hutter <email address hidden>

e503bc5... by Tony Hutter <email address hidden>

Add rwsem_tryupgrade for 4.9.20-rt16 kernel (SPL)

(This is the SPL backported code from 11d0525cb)

The RT rwsem implementation was changed to allow multiple readers
as of the 4.9.20-rt16 patch set. This results in a build failure
because the existing implementation was forced to directly access
the rwsem structure which has changed.

While this could be accommodated by adding additional compatibility
code. This patch resolves the build issue by simply assuming the
rwsem can never be upgraded. This functionality is a performance
optimization and all callers must already handle this case.

Converting the last remaining use of __SPIN_LOCK_UNLOCKED to
spin_lock_init() was additionally required to get a clean build.

Signed-off-by: Brian Behlendorf <email address hidden>
Closes #7589

06b5dfd... by Tony Hutter <email address hidden>

Add pool state /proc entry, "SUSPENDED" pools (SPL)

(This is the SPL backported code from f0ed6c744)

1. Add a proc entry to display the pool's state:

$ cat /proc/spl/kstat/zfs/tank/state
ONLINE

This is done without using the spa config locks, so it will
never hang.

2. Fix 'zpool status' and 'zpool list -o health' output to print
"SUSPENDED" instead of "ONLINE" for suspended pools.

Reviewed-by: Olaf Faaland <email address hidden>
Reviewed-by: Brian Behlendorf <email address hidden>
Reviewed by: Richard Elling <email address hidden>
Signed-off-by: Tony Hutter <email address hidden>
Closes #7331
Closes #7563

e566796... by Brian Behlendorf

Linux 4.18 compat: inode timespec -> timespec64

Commit torvalds/linux@95582b0 changes the inode i_atime, i_mtime,
and i_ctime members form timespec's to timespec64's to make them
2038 safe. As part of this change the current_time() function was
also updated to return the timespec64 type.

Resolve this issue by introducing a new inode_timespec_t type which
is defined to match the timespec type used by the inode. It should
be used when working with inode timestamps to ensure matching types.

The timestruc_t type under Illumos was used in a similar fashion but
was specified to always be a timespec_t. Rather than incorrectly
define this type all timespec_t types have been replaced by the new
inode_timespec_t type.

Finally, the kernel and user space 'sys/time.h' headers were aligned
with each other. They define as appropriate for the context several
constants as macros and include static inline implementation of
gethrestime(), gethrestime_sec(), and gethrtime().

Reviewed-by: Chunwei Chen <email address hidden>
Signed-off-by: Brian Behlendorf <email address hidden>
Closes #7643
Backported-by: Richard Yao <email address hidden>

34f8017... by Tony Hutter <email address hidden>

Tag spl-0.7.9

META file and changelog updated.

Signed-off-by: Tony Hutter <email address hidden>

c8ca0f9... by Brian Behlendorf

Fix undefined RPM macros

Always invoke the SPL_AC_DEBUG* macro's when running configure
so RPM_DEFINE_COMMON is correctly expanded. A similar change
was already applied to ZFS.

Reviewed-by: George Melikov <email address hidden>
Reviewed-by: Tony Hutter <email address hidden>
Signed-off-by: Brian Behlendorf <email address hidden>
Closes #703

d8c8ba2... by Tony Hutter <email address hidden>

Exclude python scripts from RPM shebang check

The newest Fedora packaging rules print warnings for scripts using the
/usr/bin/python shebang:

  *** WARNING: mangling shebang in /usr/src/spl-0.7.0/cmd/splslab/splslab.py
  from #!/usr/bin/python to #!/usr/bin/python2. This will become an ERROR,
  fix it manually!

Fedora wants all cross compatible scripts to pick python3. Since we
don't want our users to have to pick a specific version of python, we
exclude our scripts from the RPM build check.

Reviewed-by: Brian Behlendorf <email address hidden>
Signed-off-by: Tony Hutter <email address hidden>
Closes: #699
Closes: #700

1de8f00... by Giuseppe Di Natale <email address hidden>

Linux compat 4.16: SECTOR_SIZE

As of https://github.com/torvalds/linux/commit/233bde21,
SECTOR_SIZE is defined in linux/blkdev.h. Define SECTOR_SIZE
in sunldi.h only if it's not already defined.

Reviewed-by: Brian Behlendorf <email address hidden>
Reviewed-by: George Melikov <email address hidden>
Signed-off-by: Giuseppe Di Natale <email address hidden>
Closes #697