frostfs-node/pkg
Evgenii Stratonikov e0309e398c [#2239] writecache: Fix possible deadlock
LRU `Peek`/`Contains` take LRU mutex _inside_ of a `View` transaction.
`View` transaction itself takes `mmapLock` [1], which is lifted after tx
finishes (in `tx.Commit()` -> `tx.close()` -> `tx.db.removeTx`)

When we evict items from LRU cache mutex order is different:
first we take LRU mutex and then execute `Batch` which _does_ take
`mmapLock` in case we need to remap. Thus the deadlock.

[1] 8f4a7e1f92/db.go (L708)

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-02-20 13:53:27 +03:00
..
core [#1] Fix comments and error messages 2023-02-06 17:41:14 +03:00
innerring [#1] Fix comments and error messages 2023-02-06 17:41:14 +03:00
local_object_storage [#2239] writecache: Fix possible deadlock 2023-02-20 13:53:27 +03:00
metrics [#1794] metrics: Track physical object capacity per shard 2023-01-26 20:06:28 +03:00
morph [#2212] morph: Fix subscription restoration 2023-02-20 13:53:27 +03:00
network [#1] Fix comments and error messages 2023-02-06 17:41:14 +03:00
services [#57] node: Broadcast link objects 2023-02-17 11:58:27 +03:00
util [#1] Fix comments and error messages 2023-02-06 17:41:14 +03:00