summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/ftpd.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2011-12-23 09:09:42 +0000
committerkib <kib@FreeBSD.org>2011-12-23 09:09:42 +0000
commitc2a7f1025365e002b4b0640500da172643227fb5 (patch)
treeaf24cd87039958ebef984fd0db3750b95269b464 /libexec/ftpd/ftpd.c
parent557be54d6324f110c3b92f5ee4916cf23409d5ed (diff)
downloadFreeBSD-src-c2a7f1025365e002b4b0640500da172643227fb5.zip
FreeBSD-src-c2a7f1025365e002b4b0640500da172643227fb5.tar.gz
Optimize the common case of msyncing the whole file mapping with
MS_SYNC flag. The system must guarantee that all writes are finished before syscalls returned. Schedule the writes in async mode, which is much faster and allows the clustering to occur. Wait for writes using VOP_FSYNC(), since we are syncing the whole file mapping. Potentially, the restriction to only apply the optimization can be relaxed by not requiring that the mapping cover whole file, as it is done by other OSes. Reported and tested by: az Reviewed by: alc MFC after: 2 weeks
Diffstat (limited to 'libexec/ftpd/ftpd.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud