freebsd-nq/sys
Xin LI eb3d0c5d8c MFuser/delphij/zfs-arc-rebase@r281754:
In r256613, taskqueue_enqueue_locked() have been modified to release the
task queue lock before returning.  In r276665, taskqueue_drain_all() will
call taskqueue_enqueue_locked() to insert the barrier task into the queue,
but did not reacquire the lock after it but later code expects the lock
still being held (e.g. TQ_SLEEP()).

The barrier task is special and if we release then reacquire the lock,
there would be a small race window where a high priority task could sneak
into the queue.  Looking more closely, the race seems to be tolerable but
is undesirable from semantics standpoint.

To solve this, in taskqueue_drain_tq_queue(), instead of directly calling
taskqueue_enqueue_locked(), insert the barrier task directly without
releasing the lock.
2015-05-26 01:40:33 +00:00
..
amd64 When I merged the lemul branch I missied kib@'s r282708 commit. 2015-05-25 20:44:46 +00:00
arm Remove unused mutex and softc variables. 2015-05-26 01:30:09 +00:00
arm64
boot
bsm
cam
cddl zfs: fixes for a full stream received into an existing dataset 2015-05-25 11:56:57 +00:00
compat When I merged the lemul branch I missied kib@'s r282708 commit. 2015-05-25 20:44:46 +00:00
conf sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
contrib
crypto
ddb
dev Change three methods in struct ieee80211com, namely ic_updateslot, 2015-05-25 19:53:29 +00:00
fs Hide vfs.pfs.trace variable if it is not used. 2015-05-24 18:11:22 +00:00
gdb
geom
gnu
i386 When I merged the lemul branch I missied kib@'s r282708 commit. 2015-05-25 20:44:46 +00:00
isa
kern MFuser/delphij/zfs-arc-rebase@r281754: 2015-05-26 01:40:33 +00:00
kgssapi
libkern
mips The kernel sends signals to the processes via ABI specific sv_sendsig method. 2015-05-24 17:56:02 +00:00
modules sfxge: add 7xxx NICs family support 2015-05-25 08:34:55 +00:00
net
net80211 Cleanup compat shims for FreeBSD versions that predate 10.0-RELEASE. 2015-05-25 20:06:49 +00:00
netgraph
netinet
netinet6
netipsec
netnatm
netpfil
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto Use the correct number of arguments for the 2015-05-25 01:31:39 +00:00
pc98
powerpc The kernel sends signals to the processes via ABI specific sv_sendsig method. 2015-05-24 17:56:02 +00:00
rpc
security
sparc64 The kernel sends signals to the processes via ABI specific sv_sendsig method. 2015-05-24 17:56:02 +00:00
sys Add KTR tracing for some MI ptrace events. 2015-05-25 22:13:22 +00:00
teken
tools
ufs
vm
x86 xen: make sure xenpv bus is the last to attach 2015-05-25 09:47:16 +00:00
xdr
xen
Makefile