From 05bc19c33122791aead11d8133d247f169d27ff8 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 9 Jun 2020 17:41:35 +0100 Subject: [PATCH] vfs: Remove uneeded locking from read write handle String() --- vfs/read_write.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/vfs/read_write.go b/vfs/read_write.go index 8f6e2f39c..2dd6be9c1 100644 --- a/vfs/read_write.go +++ b/vfs/read_write.go @@ -184,8 +184,6 @@ func (fh *RWFileHandle) String() string { if fh == nil { return "" } - fh.mu.Lock() - defer fh.mu.Unlock() if fh.file == nil { return "" }