rclone/vfs/vfscache
Nick Craig-Wood 591fc3609a vfs: fix deadlock caused by cache cleaner and upload finishing
Before this patch a deadlock could occur if the cache cleaner was
running when an object upload finished.

This fixes the problem by delaying marking the object as clean until
we have notified the VFS layer. This means that the cache cleaner
won't consider the object until **after** the VFS layer has been
notified, thus avoiding the deadlock.

See: https://forum.rclone.org/t/rclone-mount-deadlock-when-dir-cache-time-strikes/33486/
2022-11-15 18:01:36 +00:00
..
downloaders rcat: preserve metadata when Copy falls back to Rcat 2022-11-10 12:04:35 +00:00
writeback all: fix spelling across the project 2022-08-30 11:16:26 +02:00
cache_test.go all: fix spelling across the project 2022-08-30 11:16:26 +02:00
cache.go build: reformat comments to pass go1.19 vet 2022-08-05 16:35:41 +01:00
item_test.go Replace deprecated ioutil 2022-11-07 11:41:47 +00:00
item.go vfs: fix deadlock caused by cache cleaner and upload finishing 2022-11-15 18:01:36 +00:00