mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 00:41:30 +01:00
Make SMP work again. lockmgr() needed to be told to free the buftimelock
interlock.
This commit is contained in:
parent
e66b7bac41
commit
c13d2ba70c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=48267
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)buf.h 8.9 (Berkeley) 3/30/95
|
||||
* $Id: buf.h,v 1.70 1999/06/26 02:45:37 mckusick Exp $
|
||||
* $Id: buf.h,v 1.71 1999/06/26 14:25:03 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_BUF_H_
|
||||
@ -255,6 +255,7 @@ BUF_LOCK (struct buf *bp, int locktype)
|
||||
{
|
||||
|
||||
simple_lock(&buftimelock);
|
||||
locktype |= LK_INTERLOCK;
|
||||
bp->b_lock.lk_wmesg = buf_wmesg;
|
||||
bp->b_lock.lk_prio = PRIBIO + 4;
|
||||
bp->b_lock.lk_timo = 0;
|
||||
@ -269,6 +270,7 @@ BUF_TIMELOCK(struct buf *bp, int locktype, char *wmesg, int catch, int timo)
|
||||
{
|
||||
|
||||
simple_lock(&buftimelock);
|
||||
locktype |= LK_INTERLOCK;
|
||||
bp->b_lock.lk_wmesg = wmesg;
|
||||
bp->b_lock.lk_prio = (PRIBIO + 4) | catch;
|
||||
bp->b_lock.lk_timo = timo;
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)buf.h 8.9 (Berkeley) 3/30/95
|
||||
* $Id: buf.h,v 1.70 1999/06/26 02:45:37 mckusick Exp $
|
||||
* $Id: buf.h,v 1.71 1999/06/26 14:25:03 peter Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_BUF_H_
|
||||
@ -255,6 +255,7 @@ BUF_LOCK (struct buf *bp, int locktype)
|
||||
{
|
||||
|
||||
simple_lock(&buftimelock);
|
||||
locktype |= LK_INTERLOCK;
|
||||
bp->b_lock.lk_wmesg = buf_wmesg;
|
||||
bp->b_lock.lk_prio = PRIBIO + 4;
|
||||
bp->b_lock.lk_timo = 0;
|
||||
@ -269,6 +270,7 @@ BUF_TIMELOCK(struct buf *bp, int locktype, char *wmesg, int catch, int timo)
|
||||
{
|
||||
|
||||
simple_lock(&buftimelock);
|
||||
locktype |= LK_INTERLOCK;
|
||||
bp->b_lock.lk_wmesg = wmesg;
|
||||
bp->b_lock.lk_prio = (PRIBIO + 4) | catch;
|
||||
bp->b_lock.lk_timo = timo;
|
||||
|
Loading…
Reference in New Issue
Block a user