freebsd-dev/sys
Konstantin Belousov b2344ab5ff Do not call VFS_SYNC() before VFS_UNMOUNT() for forced unmount.
Since VFS does not/cannot stop writes, sync might run indefinitely, or
be a wrong thing to do at all.  E. g. NFS ignores VFS_SYNC() for
forced unmounts, since non-responding server does not allow sync to
finish.  On the other hand, filesystems can and do stop writes using
fs-specific facilities, and should already fully flush caches in
VFS_UNMOUNT() due to the race.

Adjust msdosfs tp sync in unmount for forced call, to accomodate the
new behaviour.  Note that it is still racy, since writes are not
stopped.

Discussed with:	avg, bjk, mckusick
Reported and tested by:	pho
Sponsored by:	The FreeBSD Foundation
MFC after:	3 weeks
2014-12-09 10:00:47 +00:00
..
amd64 This configuration file removes several debugging options, including 2014-12-02 19:55:43 +00:00
arm Fix buffer overflow in Marvell PCI/PCIe driver 2014-12-07 21:02:45 +00:00
boot Define the ffs() function in the USB bootloader's global and 2014-12-05 12:04:47 +00:00
bsm
cam Count consecutive read requests as blocking in CTL for files and ZVOLs. 2014-12-06 20:39:25 +00:00
cddl MFV r275540: 2014-12-08 06:04:42 +00:00
compat
conf
contrib
crypto
ddb
dev Add port routing support for Wildcat Point. 2014-12-08 21:14:13 +00:00
fs Do not call VFS_SYNC() before VFS_UNMOUNT() for forced unmount. 2014-12-09 10:00:47 +00:00
gdb
geom Avoid unneeded malloc/memcpy/free if there is no metadata on disk. 2014-12-05 10:23:18 +00:00
gnu
i386 This configuration file removes several debugging options, including 2014-12-02 19:55:43 +00:00
isa
kern Do not call VFS_SYNC() before VFS_UNMOUNT() for forced unmount. 2014-12-09 10:00:47 +00:00
kgssapi
libkern Use the unified syntax in a few more assembly files 2014-12-05 19:08:36 +00:00
mips Switch is an 8316, so make the comments say that. 2014-12-03 23:37:23 +00:00
modules remove opensolaris cyclic code, replace with high-precision callouts 2014-12-07 11:21:41 +00:00
net Remove unneded check. No need to do m_pullup to the size that we prepended. 2014-12-02 05:41:03 +00:00
net80211
netgraph
netinet Include the received chunk padding when reporting an unknown chunk. 2014-12-06 22:57:19 +00:00
netinet6 Add refcounting to IPv6 DAD objects and simplify the DAD code to fix a 2014-12-08 04:44:40 +00:00
netipsec key_getspacq() returns holding the spacq_lock. Unlock it in all cases. 2014-12-07 06:47:00 +00:00
netnatm
netpfil
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Move OFED init a bit earlier so that PXE boot works. 2014-12-09 08:56:01 +00:00
opencrypto
pc98 This configuration file removes several debugging options, including 2014-12-02 19:55:43 +00:00
powerpc This configuration file removes several debugging options, including 2014-12-02 19:55:43 +00:00
rpc Current reaction of the nfsd worker threads to any signal is exit. 2014-12-08 16:33:18 +00:00
security
sparc64 This configuration file removes several debugging options, including 2014-12-02 19:55:43 +00:00
sys Pull in r223171 from upstream llvm trunk (by Michael Zolotukhin): 2014-12-09 07:34:28 +00:00
teken
tools
ufs
vm Always ignore the deprecated MAP_RENAME and MAP_NORESERVE flags to mmap(). 2014-12-05 15:24:42 +00:00
x86
xdr
xen
Makefile