mirror of
https://github.com/versity/scoutfs.git
synced 2026-07-24 17:12:51 +00:00
28a6b82690f37c0166d0c778c3a62dd208edf87f
Scoutfs can get into a situation where it wants to acquire a lock twice. This happens when we have a parent and child in the same inode group. A create operation will lock that group twice, once for each inode. Instead of forcing callers to remember which inode groups they've locked, we handle this internally within dlmglue. Add a dlmglue lock type flag that indicates we might recursively lock a resource. During locking, when dlmglue sees that flag and we already have the lock at an appropriate level, it will allow the lock operation to continue even when the lock is marked blocking. Signed-off-by: Mark Fasheh <mfasheh@versity.com>
Description
No description provided
6.8 MiB
Languages
C
86.3%
Shell
10%
Roff
2.5%
TeX
0.8%
Makefile
0.4%