vfs: remove items from writeback when dirty, don't just cancel the upload

This stops open items continually trying to be uploaded
This commit is contained in:
Nick Craig-Wood 2020-06-22 10:24:14 +01:00
parent 3eded3c4ac
commit d273a9d82d

View File

@ -369,7 +369,9 @@ func (item *Item) _dirty() {
item.metaDirty = true
if !item.modified {
item.modified = true
go item.c.writeback.cancelUpload(item)
item.mu.Unlock()
item.c.writeback.remove(item)
item.mu.Lock()
}
if !item.info.Dirty {
item.info.Dirty = true