remove file handle locking for setattr

This commit is contained in:
Chris Lu 2021-06-02 11:44:12 -07:00
parent 3db1642392
commit cc34475012

View File

@ -115,16 +115,6 @@ func (file *File) Setattr(ctx context.Context, req *fuse.SetattrRequest, resp *f
if err != nil { if err != nil {
return err return err
} }
if file.isOpen > 0 {
file.wfs.handlesLock.Lock()
fh := file.wfs.handles[file.Id()]
file.wfs.handlesLock.Unlock()
if fh != nil {
fh.Lock()
defer fh.Unlock()
}
}
if req.Valid.Size() { if req.Valid.Size() {