Page MenuHomeFreeBSD

autofs: rename sx lock description for am_lock
ClosedPublic

Authored by rew on Tue, Jun 30, 8:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 9, 12:16 AM
Unknown Object (File)
Tue, Jul 7, 9:07 PM
Unknown Object (File)
Tue, Jul 7, 9:04 PM
Unknown Object (File)
Tue, Jul 7, 6:38 PM
Unknown Object (File)
Tue, Jul 7, 6:30 PM
Unknown Object (File)
Tue, Jul 7, 9:07 AM
Unknown Object (File)
Tue, Jul 7, 5:19 AM
Unknown Object (File)
Mon, Jul 6, 9:27 PM
Subscribers

Details

Summary

Rename am_lock description from autofslk -> autofs-mount.

The lock description, autofslk, is used as the description for
autofs_softc->sc_lock, which is used to protect autofs requests and the
like as opposed to am_lock which protects autofs nodes for a given
mount.

This change allows witness to distinguish different lock orders for each
lock.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rew requested review of this revision.Tue, Jun 30, 8:30 PM
sys/fs/autofs/autofs_vfsops.c
89

Top and ps use 6-char field to display the wchan name, which for sx locks happen to be the lock name. I suggest "autfsm" or like.

use autfsm for lock description

rew marked an inline comment as done.Wed, Jul 1, 9:02 AM

Change the commit message to reflect the new name.

This revision is now accepted and ready to land.Wed, Jul 1, 9:05 AM
In D57972#1329617, @kib wrote:

Change the commit message to reflect the new name.

will do

This revision was automatically updated to reflect the committed changes.