File tree Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Expand file tree Collapse file tree 3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -193,6 +193,11 @@ func (c *Connection) Init() error {
193
193
initOp .Flags |= fusekernel .InitNoOpendirSupport
194
194
}
195
195
196
+ // Tell the Kernel to allow sending parallel lookup and readdir operations.
197
+ if c .cfg .EnableParallelDirOps {
198
+ initOp .Flags |= fusekernel .InitParallelDirOps
199
+ }
200
+
196
201
return c .Reply (ctx , nil )
197
202
}
198
203
Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ const (
266
266
InitAsyncDIO InitFlags = 1 << 15
267
267
InitWritebackCache InitFlags = 1 << 16
268
268
InitNoOpenSupport InitFlags = 1 << 17
269
+ InitParallelDirOps InitFlags = 1 << 18
269
270
InitMaxPages InitFlags = 1 << 22
270
271
InitCacheSymlinks InitFlags = 1 << 23
271
272
InitNoOpendirSupport InitFlags = 1 << 24
Original file line number Diff line number Diff line change @@ -185,6 +185,11 @@ type MountConfig struct {
185
185
// Flag to enable async reads that are received from
186
186
// the kernel
187
187
EnableAsyncReads bool
188
+
189
+ // Flag to enable parallel lookup and readdir operations from the
190
+ // kernel
191
+ // Ref: https://github.com/torvalds/linux/commit/5c672ab3f0ee0f78f7acad183f34db0f8781a200
192
+ EnableParallelDirOps bool
188
193
}
189
194
190
195
// Create a map containing all of the key=value mount options to be given to
You can’t perform that action at this time.
0 commit comments