mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
- Differentiate two UPGRADE panics so I have a better idea of what's going
on here.
This commit is contained in:
parent
a3e2432858
commit
436901a86b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144928
@ -268,8 +268,10 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line)
|
||||
* after the upgrade). If we return an error, the file
|
||||
* will always be unlocked.
|
||||
*/
|
||||
if ((lkp->lk_lockholder == thr) || (lkp->lk_sharecount <= 0))
|
||||
if (lkp->lk_lockholder == thr)
|
||||
panic("lockmgr: upgrade exclusive lock");
|
||||
if (lkp->lk_sharecount <= 0)
|
||||
panic("lockmgr: upgrade without shared");
|
||||
shareunlock(td, lkp, 1);
|
||||
/*
|
||||
* If we are just polling, check to see if we will block.
|
||||
|
Loading…
Reference in New Issue
Block a user