Handle each op in its own goroutine.
parent
4d06d8aef8
commit
0461ddac4f
|
@ -104,6 +104,11 @@ func (s fileSystemServer) ServeOps(c *fuse.Connection) {
|
|||
panic(err)
|
||||
}
|
||||
|
||||
go s.handleOp(op)
|
||||
}
|
||||
}
|
||||
|
||||
func (s fileSystemServer) handleOp(op fuseops.Op) {
|
||||
switch typed := op.(type) {
|
||||
default:
|
||||
op.Respond(fuse.ENOSYS)
|
||||
|
@ -162,5 +167,4 @@ func (s fileSystemServer) ServeOps(c *fuse.Connection) {
|
|||
case *fuseops.ReleaseFileHandleOp:
|
||||
s.fs.ReleaseFileHandle(typed)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue