/[base]
ViewVC logotype

Revision 299753


Jump to revision: Previous Next
Author: rmacklem
Date: Sat May 14 20:03:22 2016 UTC (8 years, 1 month ago)
Changed paths: 2
Log Message:
Fix fuse to use DIRECT_IO when required.

When a file is opened write-only and a partial block was written,
buffered I/O would try and read the whole block in. This would
result in a hung thread, since there was no open (fuse filehandle)
that allowed reading. This patch avoids the problem by forcing
DIRECT_IO for this case.
It also sets DIRECT_IO when the file system specifies the FN_DIRECTIO
flag in its reply to the open.

Tested by:	nishida@asusa.net, freebsd@moosefs.com
PR:		194293, 206238
MFC after:	2 weeks


Changed paths

Path Details
Directoryhead/sys/fs/fuse/fuse_file.c modified , text changed
Directoryhead/sys/fs/fuse/fuse_vnops.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27