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
F106184624: D20066.id56686.diff
Thu, Dec 26, 7:16 PM
F106181787: D20066.id56693.diff
Thu, Dec 26, 6:03 PM
F106181063: D20066.id56805.diff
Thu, Dec 26, 5:45 PM
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
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.