rclone/vfs/vfscache
Nick Craig-Wood 4ffe9dcfef 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:46 +00:00
..
downloaders build: add package comments to silence revive linter 2022-08-28 13:43:51 +02: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 Spelling fixes 2020-10-14 15:21:31 +01:00
item.go vfs: fix deadlock caused by cache cleaner and upload finishing 2022-11-15 18:01:46 +00:00