kernel - Fix lockmgr LK_UPGRADE bug
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 9 Nov 2013 04:46:43 +0000 (20:46 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 9 Nov 2013 04:46:43 +0000 (20:46 -0800)
commit6ebd652fc20d94dea78fdb5859a25607ffb66683
tree68fff9161f1a0260c37307dac3cf72a760708e76
parenta25c5a19d931871ad005f81b850f9a9882a01103
kernel - Fix lockmgr LK_UPGRADE bug

* Fix a bug in the LK_UPGRADE sequencing.  If an LKC_UPREQ owner is present
  and releasing the shared lock would release the lock, the UPREQ owner must
  be granted the exclusive lock right then and there.
sys/kern/kern_lock.c