READ_ONCE()/WRITE_ONCE() macros are added in commit 0932fde, we should be able to utilize the macros to get around the possibility of data races for domc->min_vruntime.
_Personally I think dom_min_vruntime function is redundant, it simply does the load operation of domc->min_vruntime, nothing special. It doesn't provide better readability either, the variable domc->min_vruntime is easy and trivial enough to understand itself._
Summary
READ_ONCE()/WRITE_ONCE() macros are added in commit 0932fde, we should be able to utilize the macros to get around the possibility of data races for domc->min_vruntime.
_Personally I think
dom_min_vruntime
function is redundant, it simply does the load operation ofdomc->min_vruntime
, nothing special. It doesn't provide better readability either, the variabledomc->min_vruntime
is easy and trivial enough to understand itself._