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
Unknown Object (File)
Mon, Oct 6, 6:52 PM
Unknown Object (File)
Sun, Oct 5, 4:11 AM
Unknown Object (File)
Thu, Oct 2, 5:42 AM
Unknown Object (File)
Sep 19 2025, 1:36 AM
Unknown Object (File)
Sep 12 2025, 1:55 AM
Unknown Object (File)
Sep 9 2025, 12:18 PM
Unknown Object (File)
Aug 15 2025, 7:34 AM
Unknown Object (File)
Aug 12 2025, 10:06 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.