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)
Thu, Apr 18, 10:01 PM
Unknown Object (File)
Thu, Apr 18, 9:58 PM
Unknown Object (File)
Feb 28 2024, 9:18 PM
Unknown Object (File)
Feb 18 2024, 7:04 AM
Unknown Object (File)
Feb 14 2024, 3:19 AM
Unknown Object (File)
Jan 15 2024, 4:00 PM
Unknown Object (File)
Dec 20 2023, 2:39 AM
Unknown Object (File)
Dec 13 2023, 8:38 AM
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.