Commit f9f8fca
committed
os/bluestore: Add fast-path optimization in Blob::put() by checking nref == 1
Add fast-path optimization in `Blob::put()` for intrusive pointer by checking
`nref == 1` using an acquire load before decrementing.
Reduces atomic overhead in common last-reference cases, improving performance
Signed-off-by: Jaya Prakash <[email protected]>1 parent 848bc72 commit f9f8fca
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
765 | 769 | | |
766 | 770 | | |
767 | 771 | | |
| |||
0 commit comments