fusefs: support EVFILT_WRITE on /dev/fuse
/dev/fuse is always ready for writing, so it's kind of dumb to poll it.
But some applications do it anyway. Better to return ready than EINVAL.
MFC after: 2 weeks
Paths
| Differential D30784 Authored by asomers on Jun 16 2021, 12:59 AM.
Details Summary fusefs: support EVFILT_WRITE on /dev/fuse /dev/fuse is always ready for writing, so it's kind of dumb to poll it. MFC after: 2 weeks Test Plan Existing kqueue test modified to use kqueue for writing as well as for reading. Tested with a real file system from https://github.com/Sherlock-Holo/fuse3
Diff Detail
Event TimelineHerald added a subscriber: imp. · View Herald TranscriptJun 16 2021, 12:59 AM2021-06-16 00:59:55 (UTC+0) Harbormaster completed remote builds in B39927: Diff 90941.Jun 16 2021, 1:00 AM2021-06-16 01:00:05 (UTC+0)
This revision is now accepted and ready to land.Jun 16 2021, 5:06 PM2021-06-16 17:06:04 (UTC+0) Closed by commit rG7b8622fa220b: fusefs: support EVFILT_WRITE on /dev/fuse (authored by asomers). · Explain WhyJun 16 2021, 7:35 PM2021-06-16 19:35:11 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 90974 sys/fs/fuse/fuse_device.c
tests/sys/fs/fusefs/mockfs.cc
|
At the server side (listening side), I am thinking if we move the secure ACK check here and above the TOF_TS check, it would save cycles on checking these timestamps.