mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Followup to r273966. Fix the build with ADAPTIVE_LOCKMGRS kernel option.
Note that the option is currently not used in any in-tree kernel configs, including LINTs. Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
This commit is contained in:
parent
4396281efd
commit
cc24666735
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273986
@ -615,7 +615,7 @@ __lockmgr_args(struct lock *lk, u_int flags, struct lock_object *ilk,
|
||||
__func__, lk, spintries, i);
|
||||
x = lk->lk_lock;
|
||||
if ((x & LK_SHARE) == 0 ||
|
||||
LK_CAN_SHARE(x) != 0)
|
||||
LK_CAN_SHARE(x, flags) != 0)
|
||||
break;
|
||||
cpu_spinwait();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user