Especially if the fs is mounted noatime none of the flags tend to be set.
While here dedup code with ufsfifo_close.
Differential D36522 Authored by mjg on Sep 10 2022, 9:33 PM.
Details Summary 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 Timelinemjg created this revision. Comment 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. mjg retitled this revision from ufs: do a lockless usecount check in ufs_close to ufs: try to elide the interlock in ufs_itimes. This revision is now accepted and ready to land.Sep 13 2022, 10:17 AM2022-09-13 10:17:20 (UTC+0) Closed by commit rGbe931de6c99f: ufs: always call ufs_itimes on close (authored by mjg). · Explain WhySep 14 2022, 6:13 PM2022-09-14 18:13:13 (UTC+0) This revision was automatically updated to reflect the committed changes. Herald added a subscriber: imp. · View Herald TranscriptSep 14 2022, 6:13 PM2022-09-14 18:13:13 (UTC+0)
Revision Contents
Diff 110555 sys/ufs/ufs/ufs_vnops.c
|