freebsd-dev/sys
Steven Hartland ca6505b818 Prevent ZFS leaking pool free space
When processing async destroys ZFS would leak space every txg timeout
(5 seconds by default), if no writes occurred, until the pool is totally
full. At this point it would be unfixable without a pool recreation.

In addition if the machine was rebooted with the pool in this situation
would fail to import on boot, hanging indefinitely, as the import process
requires the ability to write data to the pool. Any attempts to query the
pool status during the hung import would not return as the import holds
the pool lock.

The only way to import such a pool would be to specify -o readonly=on
to the zpool import.

zdb -bb <pool> can be used to check for "deferred free" size which is where
this lost space will be counted.

MFC after:	3 days
Sponsored by:	Multiplay
2014-10-16 02:23:27 +00:00
..
amd64 Emulate "POP r/m". 2014-10-14 21:02:33 +00:00
arm Remove the "Unable to unwind further" message from DDB. 2014-10-16 01:48:39 +00:00
boot Correct grammos. 2014-10-15 17:55:10 +00:00
bsm
cam Remove couple Copan's vendor-specific mode pages. 2014-10-14 11:28:25 +00:00
cddl Prevent ZFS leaking pool free space 2014-10-16 02:23:27 +00:00
compat Regenerate after r272823: 2014-10-09 15:19:35 +00:00
conf Move the adm1030 driver to the proper location, and rename it. 2014-10-16 01:32:22 +00:00
contrib Update the OFED Linux compatibility layer and 2014-10-15 13:40:29 +00:00
crypto Put the aesni_cipher_setup() and aesni_cipher_process() functions into 2014-06-24 06:55:49 +00:00
ddb ddb: ANSI-fy function declarations. 2014-10-12 18:01:52 +00:00
dev Move the adm1030 driver to the proper location, and rename it. 2014-10-16 01:32:22 +00:00
fs Style changes for deadfs: 2014-10-15 13:22:33 +00:00
gdb Add support for gdb's memory searching capabilities to our in-kernel gdb 2014-09-05 16:40:47 +00:00
geom Add an ability to set dumpdev via loader(8) tunable. 2014-10-08 12:18:16 +00:00
gnu reiserfs: Use signed i_nlink 2014-09-25 19:10:32 +00:00
i386 MFi386 r272761. 2014-10-11 16:17:49 +00:00
isa
kern Remove setting BIO_DONE flag for BIOs that have done() method. 2014-10-15 18:36:34 +00:00
kgssapi
libkern Change the PF hash from Jenkins to Murmur3. In forwarding tests 2014-10-10 19:26:26 +00:00
mips Pass up the error status of minidumpsys() to its callers. 2014-10-08 20:25:21 +00:00
modules opt_mrouting.h isn't needed anymore. 2014-10-14 14:52:39 +00:00
net Add more ifdefs. SIOC*_IN6 are defined only with INET6. 2014-10-14 14:51:27 +00:00
net80211 Mechanically convert to if_inc_counter(). 2014-09-19 09:20:55 +00:00
netgraph Bump ipfw module version. 2014-10-09 16:12:01 +00:00
netinet Overhaul if_gif(4): 2014-10-14 13:31:47 +00:00
netinet6 Overhaul if_gif(4): 2014-10-14 13:31:47 +00:00
netipsec Do not strip outer header when operating in transport mode. 2014-10-02 02:00:21 +00:00
netnatm
netpfil Fix matching default rule on clear/show commands. 2014-10-13 13:49:28 +00:00
netsmb
nfs Fix/improve fhe_stats sysctl output. 2014-06-14 12:26:12 +00:00
nfsclient Avoid an exclusive acquisition of the object lock on the expected execution 2014-09-14 18:07:55 +00:00
nfsserver Change NFS readdir() to only ignore cookies preceding the given offset for 2014-07-01 20:00:35 +00:00
nlm
ofed Update the OFED Linux compatibility layer and 2014-10-15 13:40:29 +00:00
opencrypto Fix build for kernels without COMPAT_FREEBSD32. 2014-09-22 17:32:27 +00:00
pc98 Merge pc98's machdep.c into i386/i386/machdep.c. 2014-10-04 06:01:30 +00:00
powerpc Move the adm1030 driver to the proper location, and rename it. 2014-10-16 01:32:22 +00:00
rpc Merge the NFSv4.1 server code in projects/nfsv4.1-server over 2014-07-01 20:47:16 +00:00
security Replace dev_clone with cdevpriv(9) KPI in audit_pipe code. 2014-08-20 16:04:30 +00:00
sparc64 Fix typo revealed by using newer binutils 2014-10-10 14:18:33 +00:00
sys When vnode bypass cannot be performed on the cdev file descriptor for 2014-10-15 13:16:51 +00:00
teken
tools Allow the make_dtb script to work outside of a "make buildkernel" context 2014-08-30 22:39:15 +00:00
ufs Do not set IN_ACCESS flag for read-only mounts. The IN_ACCESS 2014-10-11 19:09:56 +00:00
vm Make MAP_NOSYNC handling in the vm_fault() read-locked object path 2014-10-10 19:27:36 +00:00
x86 Support Intel-specific MSRs that are accessed when booting up a linux in bhyve: 2014-10-09 19:13:33 +00:00
xdr
xen xen: convert the xenstore user-space char device to a newbus device 2014-09-30 17:31:04 +00:00
Makefile Remove "pci" from CSCOPEDIRS. 2014-09-23 06:32:19 +00:00