1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-04 17:15:50 +00:00

Don't set lo_name and clobber lo_flags in lock_profile_object_init().

This was just wasteful when this was always called before lock_init()
(which overwrote both fields each time), but when
lock_profile_object_init() was moved into lock_init() the clearing of
lo_flags proved fatal (all locks became spin locks to _sleep(), etc.)

Reported by:	kris
This commit is contained in:
John Baldwin 2007-05-23 18:46:54 +00:00
parent 3c86b7cdad
commit 6db89449f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169912

View File

@ -84,8 +84,6 @@ static inline void lock_profile_object_init(struct lock_object *lo, struct lock_
u_int hash = 0;
struct lock_profile_object *l = &lo->lo_profile_obj;
lo->lo_flags = 0;
lo->lo_name = name;
l->lpo_acqtime = 0;
l->lpo_waittime = 0;
l->lpo_filename = NULL;