mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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:
parent
fda454099b
commit
c456a0a1a6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353733
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue