ee6370a7 behlendorf1 Aug. 19, 2016, 6:17 p.m.
When spa retry load succeeds and spa recovery is requested it may
leak in spa_load_best function.  Always free the generated config
when it is not assigned to the spa.

Signed-off-by: cao.xuewen <>
Signed-off-by: Brian Behlendorf <>
Closes #4940
2d6c6bf7 manu Aug. 19, 2016, 6:02 p.m.
Currently boot parameters (r0 - r3) are forgotten in ARM trampoline code.
This patch save them at startup and restore them before jumping into kernel
_start() routine.
This is usefull when booting with Linux ABI and/or custom bootloader.

Submitted by:	Grégory Soutadé <>
Reviewed by:	imp
Differential Revision:
cgit ViewVC
e5574e09 markj Aug. 19, 2016, 5:57 p.m.
Such processes are stopped synchronously by a direct call to
ptracestop(SIGTRAP) upon exec. P2_PTRACE_FSTP causes the exec()ing thread
to suspend itself while waiting for a SIGSTOP that never arrives.

Reviewed by:	kib
MFC after:	3 days
Differential Revision:
cgit ViewVC
7fff4413 dim Aug. 19, 2016, 5:55 p.m.
bd6ff080 jhb Aug. 19, 2016, 5:54 p.m.
This permits a single early return for VF devices in the routines that
add sysctl nodes.

Reviewed by:	np
Sponsored by:	Chelsio Communications
Differential Revision:
cgit ViewVC
7a3558be ed Aug. 19, 2016, 5:54 p.m.
aa0d2ec4 ed Aug. 19, 2016, 5:53 p.m.
Pointy hat to:	me
cgit ViewVC
301abe0f jhb Aug. 19, 2016, 5:52 p.m.
Specifically, the FW_PORT_CMD may or may not work for a VF (the PF
driver can choose whether or not to permit access to this command),
so don't attempt to fetch port information on a VF if permission is
denied by the PF.

Reviewed by:	np
Sponsored by:	Chelsio Communications
Differential Revision:
cgit ViewVC
a5f7a7e7 ed Aug. 19, 2016, 5:51 p.m.
577422fc jhb Aug. 19, 2016, 5:49 p.m.
While here, mark which parameters are PF-specific and which are

Sponsored by:	Chelsio Communications
Differential Revision:
cgit ViewVC
a5c3c5b1 ed Aug. 19, 2016, 5:49 p.m.
Now that we've switched over to using the vDSO on CloudABI, it becomes a
lot easier for us to phase out old features. System call numbering is no
longer something that's part of the ABI. It's fully based on names. As
long as the numbering used by the kernel and the vDSO is consistent
(which it always is), it's all right.

Let's put this to the test by removing a system call (thread_tcb_set())
that's already unused for quite some time now, but was only left intact
to serve as a placeholder. Sync in the new system call table that uses
alphabetic sorting of system calls.

Obtained from:
cgit ViewVC
4092a25c jhb Aug. 19, 2016, 5:37 p.m.
- Avoid double use of "request" in a single sentence.  Instead, describe
  aio_sigevent as being used to request notification of the associated
  operation's completion.  This matches the language used to describe
  aio_sigevent in aio(4).
- Simplify the prohibition on modifying buffers while requests are in
- Fix case mismatch.
- Drop note about not using stack variables. C programmers should be able
  to figure out if a stack variable is safe based on the later warning
  about the life cycle requirements of control blocks.
- Remove prohibition on modifying the I/O buffer for aio_fsync() since
  it does not use an I/O buffer.  For aio_mlock(), prohibit modifications
  to the mapping (e.g. due to mprotect, munmap, mmap, etc.) but do not
  prohibit modifications to the memory backing the buffer (stores into
  the pages backing the buffer).

Requested by:	wblock (1,2), kib (4)
Reviewed by:	kib, rpokala, wblock
MFC after:	3 days
Sponsored by:	Chelsio Communications
Differential Revision:
cgit ViewVC
aeb9baa6 behlendorf1 Aug. 19, 2016, 4:14 p.m.
When DEBUG_KMEM_TRACKING is enabled in SPL, we keep tracking all
the buffers alloced by kmem_alloc() and kmem_zalloc().  If a NULL
pointer which indicates no track info in SPL is passed to
spl_kmem_free_track, we just ignore it.

Signed-off-by: GeLiXin <>
Signed-off-by: Brian Behlendorf <>
Issue zfsonlinux/zfs#4967
Closes #567
c8442223 manu Aug. 19, 2016, 12:48 p.m.
032bdb1b mmel Aug. 19, 2016, 11:12 a.m.