From 3bb45eb81e677b4c92cc328cd0e580bd32ccc663 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 2 May 1995 15:59:06 +0000 Subject: (pager_clear_user_data): Acquire pagerlistlock around modifications to UPI->next/prevp list structure. --- ufs/pager.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ufs') diff --git a/ufs/pager.c b/ufs/pager.c index d41b792d..f403df64 100644 --- a/ufs/pager.c +++ b/ufs/pager.c @@ -1,5 +1,5 @@ /* Pager for ufs - Copyright (C) 1994 Free Software Foundation + Copyright (C) 1994, 1995 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -363,9 +363,11 @@ pager_clear_user_data (struct user_pager_info *upi) upi->np->dn->fileinfo = 0; spin_unlock (&node2pagelock); diskfs_nrele_light (upi->np); + spin_lock (&pagerlistlock); *upi->prevp = upi->next; if (upi->next) upi->next->prevp = upi->prevp; + spin_unlock (&pagerlistlock); free (upi); } -- cgit v1.2.3