freebsd-dev/sys
Mark Johnston a3e8a25a52 Avoid the nbp lookup in the final loop iteration in flushbuflist().
The end of the loop must re-lookup the next buf since the bufobj lock
is dropped in the loop body. If the lookup fails, the loop is restarted.
This mechanism non-obviously also terminates the loop when the end of
the buf list is reached. Split up the two loops termination cases to
make the code a bit less fragile. No functional change intended.

Reviewed by:	kib
MFC after:	1 week
Sponsored by:	Dell EMC Isilon
Differential Revision:	https://reviews.freebsd.org/D12730
2017-10-20 14:56:13 +00:00
..
amd64 amd64: __exclusive_cache_line pv_chunks_mutex and pv_list_locks 2017-10-20 03:38:58 +00:00
arm Allwinner: Fix compilation 2017-10-19 21:34:53 +00:00
arm64 Move kernel dump offset tracking into MI code. 2017-10-18 15:38:05 +00:00
boot libsa/ip: stop read loop on bad fragments 2017-10-18 08:06:05 +00:00
bsm
cam Zero out the ccb's alloated on the stack for the dump routines to more 2017-10-15 23:54:04 +00:00
cddl remove spa_sync_on assert from spa_async_thread_vd 2017-10-19 16:36:07 +00:00
compat Import the latest CloudABI definitions, version 0.16. 2017-10-18 19:22:53 +00:00
conf Move swapout code into vm/vm_swapout.c. 2017-10-20 09:10:49 +00:00
contrib Import the latest CloudABI definitions, version 0.16. 2017-10-18 19:22:53 +00:00
crypto aesni(4): CRYPTO_AES_NIST_GCM_16 mandates MAC 2017-10-04 21:15:45 +00:00
ddb
dev The remote DMA TCP portspace selector, RDMA_PS_TCP, is used for both 2017-10-20 08:20:15 +00:00
fs Fix unused variable + style(9) fixes inside the ext4_ext_find_extent() 2017-10-19 16:42:03 +00:00
gdb gdb kernel server: fixup Search:memory style 2017-10-17 01:12:17 +00:00
geom Display rotation rate and TRIM/UNMAP support in diskinfo(8) 2017-10-04 15:09:49 +00:00
gnu
i386 Move kernel dump offset tracking into MI code. 2017-10-18 15:38:05 +00:00
isa
kern Avoid the nbp lookup in the final loop iteration in flushbuflist(). 2017-10-20 14:56:13 +00:00
kgssapi
libkern Continuing efforts to provide hardening of FFS, this change adds a 2017-09-22 12:45:15 +00:00
mips Remove CPU_HAVEFPU. 2017-10-18 17:23:16 +00:00
modules Remove mbpool(9) now that it has no consumers. 2017-10-18 00:18:03 +00:00
net ifnet(9): split ifc_alloc_unit() (should simplify code flow) 2017-10-16 21:21:31 +00:00
net80211 [net80211] don't try to follow a NULL rxs pointer down the sink. 2017-10-13 06:49:07 +00:00
netgraph Correction after r323873: #include <sys/lock.h> in addition to <sys/rmlock.h> 2017-09-28 11:26:37 +00:00
netinet Relax per-ifnet cif_vrs list double locking in carp(4). 2017-10-19 09:01:15 +00:00
netinet6 Hide struct socket and struct unpcb from the userland. 2017-10-02 23:29:56 +00:00
netipsec opencrypto: Loosen restriction on HMAC key sizes 2017-09-26 16:18:10 +00:00
netpfil Fix regression in handling O_FORWARD_IP opcode after r279948. 2017-10-13 11:11:53 +00:00
netsmb netsmb: Fix buggy/racy smb_strdupin() 2017-09-29 15:53:26 +00:00
nfs
nfsclient
nfsserver
nlm
ofed The remote DMA TCP portspace selector, RDMA_PS_TCP, is used for both 2017-10-20 08:20:15 +00:00
opencrypto crypto(9): Print flags in more useful hex 2017-10-11 20:04:30 +00:00
powerpc Expand the TLB nest level mask to 3 bits to match the 32-bit mask 2017-10-20 03:31:23 +00:00
riscv Sync with amd64/arm/arm64/i386/mips pmap change r288256: 2017-09-20 04:19:49 +00:00
rpc
security Sprinkle __read_frequently on few obvious places. 2017-09-06 20:33:33 +00:00
sparc64 Move kernel dump offset tracking into MI code. 2017-10-18 15:38:05 +00:00
sys Move swapout code into vm/vm_swapout.c. 2017-10-20 09:10:49 +00:00
teken
tests
tools embed_mfs: add error handling, usage 2017-10-17 21:13:26 +00:00
ufs Don't defer wakeup()s for completed journal workitems. 2017-09-26 23:24:15 +00:00
vm Move swapout code into vm/vm_swapout.c. 2017-10-20 09:10:49 +00:00
x86 x86: Decode AMD "Extended Feature Extensions ID EBX" bits 2017-09-20 18:30:37 +00:00
xdr
xen
Makefile