HomeFreeBSD

MFC r360051: tty: convert tty_lock_assert to tty_assert_locked

Description

MFC r360051: tty: convert tty_lock_assert to tty_assert_locked

A later change, currently being iterated on in D24459, will in-fact change
the lock type to an sx so that TTY drivers can sleep on it if they need to.
Committing this ahead of time to make the review in question a little more
palatable.

tty_lock_assert() is unfortunately still needed for now in two places to
make sure that the tty lock has not been recursed upon, for those scenarios
where it's supplied by the TTY driver and possibly a mutex that is allowed
to recurse.

Details

Provenance
kevansAuthored on
Parents
rS360257: MFC r360033, r360108: better precision in kqueue timer tests
Branches
Unknown
Tags
Unknown