Abbreviate softdep lock names.

The softdep lock names were unusually long and tended to stick out in
lock profiling reports.  Abbreviate them and make them consistent with
our conventional style for lock names.

Reviewed by:	mckusick
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D22042
This commit is contained in:
Mark Johnston 2019-10-18 17:01:27 +00:00
parent fda454099b
commit c456a0a1a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353733

View file

@ -968,7 +968,7 @@ static int softdep_count_dependencies(struct buf *bp, int);
* Global lock over all of soft updates.
*/
static struct mtx lk;
MTX_SYSINIT(softdep_lock, &lk, "Global Softdep Lock", MTX_DEF);
MTX_SYSINIT(softdep_lock, &lk, "global softdep", MTX_DEF);
#define ACQUIRE_GBLLOCK(lk) mtx_lock(lk)
#define FREE_GBLLOCK(lk) mtx_unlock(lk)
@ -2491,7 +2491,7 @@ softdep_mount(devvp, mp, fs, cred)
ump = VFSTOUFS(mp);
ump->um_softdep = sdp;
MNT_IUNLOCK(mp);
rw_init(LOCK_PTR(ump), "Per-Filesystem Softdep Lock");
rw_init(LOCK_PTR(ump), "per-fs softdep");
sdp->sd_ump = ump;
LIST_INIT(&ump->softdep_workitem_pending);
LIST_INIT(&ump->softdep_journal_pending);