[LU-10013] Atomic usage cleanups Created: 20/Sep/17  Updated: 29/Jan/22

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Patrick Farrell (Inactive) Assignee: Patrick Farrell (Inactive)
Resolution: Unresolved Votes: 0
Labels: patch

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

There are a lot of places in Lustre where we unnecessarily use more than one atomic operation where one will do. The compiler can't fix this for us, since usage of atomics is largely exempt from optimization. In a few places, this has a clearly measurable cost (lu_object_get can use atomic_inc_return for the ASSERT, and this nets a few % improvement on single process reads). Some of the changes in the osc page code may also give some measurable benefits.

This cleanup is not intended to catch every bad use of atomics (I looked primarily at asserts), but should be a good start.



 Comments   
Comment by Patrick Farrell (Inactive) [ 20/Sep/17 ]

Pushed to wrong LU... Whoops!

https://review.whamcloud.com/29117

Generated at Sat Feb 10 02:31:16 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.