From a1b2079000fa319fd6e9ee79ceb8d15d4bbd55d5 Mon Sep 17 00:00:00 2001 From: dfr Date: Thu, 13 Aug 1998 08:05:13 +0000 Subject: [PATCH] Protect all modifications to paging_in_progress with splvm(). --- sys/vm/swap_pager.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 6d42159b7133..946b6d2ba290 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -39,7 +39,7 @@ * from: Utah $Hdr: swap_pager.c 1.4 91/04/30$ * * @(#)swap_pager.c 8.9 (Berkeley) 3/21/94 - * $Id: swap_pager.c,v 1.97 1998/07/11 07:46:11 bde Exp $ + * $Id: swap_pager.c,v 1.98 1998/07/28 15:30:01 bde Exp $ */ /* @@ -1590,7 +1590,9 @@ swap_pager_finish(spc) PAGE_BWAKEUP(ma[i]); } + s = splvm(); object->paging_in_progress -= spc->spc_count; + splx(s); if ((object->paging_in_progress == 0) && (object->flags & OBJ_PIPWNT)) { object->flags &= ~OBJ_PIPWNT;