Page MenuHomeFreeBSD

Stop checking for TD_IDLETHREAD() in the buffer cache.
ClosedPublic

Authored by markj on Apr 26 2019, 6:15 AM.
Tags
None
Referenced Files
F106150114: D20066.diff
Thu, Dec 26, 5:35 AM
Unknown Object (File)
Wed, Dec 11, 6:44 PM
Unknown Object (File)
Sat, Dec 7, 4:00 PM
Unknown Object (File)
Nov 10 2024, 5:40 PM
Unknown Object (File)
Nov 10 2024, 5:36 PM
Unknown Object (File)
Oct 25 2024, 3:16 PM
Unknown Object (File)
Oct 8 2024, 2:55 PM
Unknown Object (File)
Sep 8 2024, 2:02 PM
Subscribers

Details

Summary

The checks seems to be vestigal; an idle thread cannot execute these
code paths. For example, an idle thread is not permitted to acquire
locks.

Cache curthread in bread(). No functional change intended.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23920
Build 22840: arc lint + arc unit

Event Timeline

Wouldn't the same argument apply to the getblkx() use of the predicate ?

In D20066#431505, @kib wrote:

Wouldn't the same argument apply to the getblkx() use of the predicate ?

Indeed, I missed that one somehow.

Remove another always-false check.

This revision is now accepted and ready to land.Apr 26 2019, 7:51 AM
This revision was automatically updated to reflect the committed changes.