]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
fusefs: implement FUSE_ASYNC_READ
authorasomers <asomers@FreeBSD.org>
Fri, 24 May 2019 05:12:43 +0000 (05:12 +0000)
committerasomers <asomers@FreeBSD.org>
Fri, 24 May 2019 05:12:43 +0000 (05:12 +0000)
commit23e2f22860f44ef3b88c4e5275969b6e0f8396d7
tree893118a872538c60d0c227a8d440e8462b5df2cf
parent8f7d683f4ce3146c980b649cdadf2c54df8471f1
fusefs: implement FUSE_ASYNC_READ

If a daemon sets the FUSE_ASYNC_READ flag during initialization, then the
client is allowed to issue multiple concurrent reads for the same file
handle.  Otherwise concurrent reads are not allowed.  This commit implements
it.  Previously we unconditionally disallowed concurrent reads.

Sponsored by: The FreeBSD Foundation
sys/fs/fuse/fuse_internal.c
sys/fs/fuse/fuse_ipc.h
sys/fs/fuse/fuse_node.c
tests/sys/fs/fusefs/read.cc