Commit 2b78a5b
client: Prevent race condition when printing Inode in ll_sync_inode
In the ll_sync_inode function, the entire Inode structure is printed without
holding a lock. This can lead to a race condition when evaluating the assertion
in xlist<ObjectCacher::Object*>::size(), resulting in abnormal behavior.
Fixes: https://tracker.ceph.com/issues/67491
Co-authored-by: dongdong tao <[email protected]>
Signed-off-by: Chengen Du <[email protected]>1 parent 530a260 commit 2b78a5b
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16140 | 16140 | | |
16141 | 16141 | | |
16142 | 16142 | | |
16143 | | - | |
| 16143 | + | |
16144 | 16144 | | |
16145 | 16145 | | |
16146 | 16146 | | |
| |||
0 commit comments