- Differentiate two UPGRADE panics so I have a better idea of what's going

on here.
This commit is contained in:
Jeff Roberson 2005-04-12 05:43:03 +00:00
parent a3e2432858
commit 436901a86b

@ -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.