Skip to content

Commit

Permalink
fuse: drop locking from Server.KernelSettings()
Browse files Browse the repository at this point in the history
Since the kernel settings are set synchronously on initialization, no
thread synchronization is necessary.

Change-Id: Ia8664628599562114d1f755e132e2cee4317836d
  • Loading branch information
hanwen committed Oct 28, 2024
1 parent 6b5a596 commit d9023ab
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fuse/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ func (ms *Server) SetDebug(dbg bool) {
// filesystems can adapt to availability of features of the kernel
// driver. The message should not be altered.
func (ms *Server) KernelSettings() *InitIn {
ms.reqMu.Lock()
s := ms.kernelSettings
ms.reqMu.Unlock()

return &s
}
Expand Down

0 comments on commit d9023ab

Please sign in to comment.