Commit b40d25c
fsgofer: update lastUnlockedDentry only after unlocking the dentry
Update lastUnlockedDentry only after the mutex has been unlocked. If
doRevalidationLisafs panics, deferred functions are executed. Updating
lastUnlockedDentry earlier could lead to a deferred function attempting to
acquire an already locked mutex, resulting in a deadlock.
PiperOrigin-RevId: 8093244481 parent 6448dbe commit b40d25c
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
707 | | - | |
708 | | - | |
709 | | - | |
710 | 707 | | |
711 | 708 | | |
712 | 709 | | |
713 | 710 | | |
| 711 | + | |
714 | 712 | | |
715 | 713 | | |
716 | 714 | | |
| |||
732 | 730 | | |
733 | 731 | | |
734 | 732 | | |
| 733 | + | |
735 | 734 | | |
736 | 735 | | |
737 | 736 | | |
0 commit comments