freebsd-dev/sys
Konstantin Belousov 5cf14660ae Improve publication of the newly allocated snapdata.
For freshly allocated snapdata, Lock sn_lock in advance, so
si_snapdata readers see the locked snapdata and not race.

For existing snapdata, if the thread was put to sleep waiting for
sn_lock, re-read si_snapdata.  This either closes the race or makes
the reliance on LK_DRAIN less important.

Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
2017-07-21 18:42:35 +00:00
..
amd64 __pcpu: gcc -Wredundant-decls 2017-07-21 17:11:36 +00:00
arm Allwinner EHCI: Do not fail if we cannot get a phy 2017-07-18 19:50:02 +00:00
arm64 Add support for passing FPU_KERN_NOCTX to fpu_kern_enter on arm64. This 2017-07-18 16:36:32 +00:00
boot Fix printf format warning in zfs_module.c 2017-07-20 20:27:19 +00:00
bsm
cam This adds CAM pass(4) support for NVMe IO's. Applications indicate 2017-07-14 14:52:20 +00:00
cddl zfs: Fix a typo in the delay_min_dirty_percent sysctl description 2017-07-19 18:17:41 +00:00
compat Correct sysent flags for dynamically loaded syscalls. 2017-07-14 09:34:44 +00:00
conf Compile the atomic64 emulation for powerpcspe 2017-07-21 03:48:09 +00:00
contrib
crypto
ddb Include opt files in the kernel with "" instead of <>. 2017-07-10 05:08:01 +00:00
dev Do not update stats counter in SWI context. Defer to the already existing 2017-07-21 17:42:54 +00:00
fs r320062 introduced a bug when doing NFSv4.1 mounts against some non-FreeBSD servers. 2017-07-21 00:14:43 +00:00
gdb
geom Add GEOM::descr attribute for symmetry with GEOM::ident. 2017-07-06 08:36:14 +00:00
gnu Update DTS files from Linux 4.12 2017-07-09 13:53:32 +00:00
i386 Fix handling of one more possible exception on return to usermode. 2017-07-08 11:07:39 +00:00
isa Protect access to the AT realtime clock with its own mutex. 2017-07-12 02:42:57 +00:00
kern Fix getsockopt() for listening sockets when using SO_SNDBUF, SO_RCVBUF, 2017-07-21 07:44:43 +00:00
kgssapi
libkern
mips Make ddb(4) disassembler (x/i) use n32 register names. 2017-07-06 15:08:51 +00:00
modules qlnx: gcc build errors 2017-07-18 06:15:05 +00:00
net Update netmap_user.h with the current version of netmap. This file should 2017-07-21 03:42:09 +00:00
net80211
netgraph
netinet Deal with listening socket correctly. 2017-07-20 14:50:13 +00:00
netinet6 Use memset/memcpy instead of bzero/bcopy. 2017-07-19 14:28:58 +00:00
netipsec
netpfil Fix a couple of typos in a comment. 2017-07-21 03:04:55 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc Add cpufreq support for P1022 and MPC8536 2017-07-21 03:40:05 +00:00
riscv
rpc
security
sparc64
sys efi: restrict visibility of EFIABI_ATTR-declared functions 2017-07-20 06:47:06 +00:00
teken
tests
tools
ufs Improve publication of the newly allocated snapdata. 2017-07-21 18:42:35 +00:00
vm Fix style: change spaces to tabs. 2017-07-21 14:14:47 +00:00
x86 __pcpu: gcc -Wredundant-decls 2017-07-21 17:11:36 +00:00
xdr
xen
Makefile