Especially if the fs is mounted noatime none of the flags tend to be set.
While here dedup code with ufsfifo_close.
Differential D36522
ufs: try to elide the interlock in ufs_itimes mjg on Sep 10 2022, 9:33 PM. Authored by Tags None Referenced Files
Subscribers
Details Especially if the fs is mounted noatime none of the flags tend to be set. While here dedup code with ufsfifo_close.
Diff Detail
Event TimelineComment Actions I'm guessing the original code was avoiding the call, expecting for it to happen in ufs_inactive later. This retains the ultimately racy nature, except avoids the interlock. Comment Actions I agree, it probably was an attempt for micro-optimization, I do not see any other reason. Then, since inactivation is not guaranteed to occur now, while close is, I think the check for v_usecount should be removed. |