vfs: Remove uneeded locking from read write handle String()

This commit is contained in:
Nick Craig-Wood 2020-06-09 17:41:35 +01:00
parent 40fe97e946
commit 05bc19c331

View File

@ -184,8 +184,6 @@ func (fh *RWFileHandle) String() string {
if fh == nil { if fh == nil {
return "<nil *RWFileHandle>" return "<nil *RWFileHandle>"
} }
fh.mu.Lock()
defer fh.mu.Unlock()
if fh.file == nil { if fh.file == nil {
return "<nil *RWFileHandle.file>" return "<nil *RWFileHandle.file>"
} }