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:
parent
63e7e60dba
commit
6a2eac8acc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103924
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user