1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

- Lock access to numoutput on the swap devices.

This commit is contained in:
Jeff Roberson 2002-09-25 01:24:17 +00:00
parent 63e7e60dba
commit 6a2eac8acc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103924
2 changed files with 4 additions and 0 deletions

View File

@ -1359,7 +1359,9 @@ swap_pager_putpages(object, m, count, sync, rtvals)
cnt.v_swapout++;
cnt.v_swappgsout += bp->b_npages;
VI_LOCK(swapdev_vp);
swapdev_vp->v_numoutput++;
VI_UNLOCK(swapdev_vp);
splx(s);

View File

@ -151,7 +151,9 @@ swapdev_strategy(ap)
}
VI_UNLOCK(vp);
}
VI_LOCK(sp->sw_vp);
sp->sw_vp->v_numoutput++;
VI_UNLOCK(sp->sw_vp);
}
bp->b_vp = sp->sw_vp;
splx(s);